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