fix: cached image is blank after first reuse

This commit is contained in:
2026-03-13 18:21:40 +07:00 Unverified
parent e7c488d41d
commit d460e7972a
+1 -1
View File
@@ -67,7 +67,7 @@ export function card(app: App) {
const cacheKey = hash(JSON.stringify(data)).toString(36);
const cached = cache.get<ImageResponse>(cacheKey);
if (cached) return cached;
if (cached) return cached.clone();
const resources = await Promise.all([
...[...avatar.Consts, ...Object.values(avatar.Skills)].map(