fix: cached image is blank after first reuse
This commit is contained in:
+1
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user