fix: leftover mock data
This commit is contained in:
+2
-3
@@ -15,7 +15,6 @@ import { ConstsSvg } from "@/assets/consts";
|
|||||||
import shadeSvg from "@/assets/shade.svg" with { type: "file" };
|
import shadeSvg from "@/assets/shade.svg" with { type: "file" };
|
||||||
import fontFile from "@/assets/shinshin.woff2" with { type: "file" };
|
import fontFile from "@/assets/shinshin.woff2" with { type: "file" };
|
||||||
import { TalentSvg } from "@/assets/talent";
|
import { TalentSvg } from "@/assets/talent";
|
||||||
import { mockData } from "@/lib/mock";
|
|
||||||
import { AvatarStore } from "@/type/enka";
|
import { AvatarStore } from "@/type/enka";
|
||||||
|
|
||||||
const cache = new TTLCache();
|
const cache = new TTLCache();
|
||||||
@@ -40,8 +39,8 @@ export function card(app: App) {
|
|||||||
try {
|
try {
|
||||||
const avatarStore = await getEnkaAvatarStore();
|
const avatarStore = await getEnkaAvatarStore();
|
||||||
console.log(`${Date.now() - start}ms - Avatar store loaded`);
|
console.log(`${Date.now() - start}ms - Avatar store loaded`);
|
||||||
// const data = await fetchEnka(uid, false);
|
// const data = mockData;
|
||||||
const data = mockData;
|
const data = await fetchEnka(uid, false);
|
||||||
console.log(`${Date.now() - start}ms - Enka data loaded`);
|
console.log(`${Date.now() - start}ms - Enka data loaded`);
|
||||||
if (typeof data.avatarInfoList === "undefined")
|
if (typeof data.avatarInfoList === "undefined")
|
||||||
return status(400, "The showcase for this UID is private");
|
return status(400, "The showcase for this UID is private");
|
||||||
|
|||||||
Reference in New Issue
Block a user