aboutsummaryrefslogtreecommitdiffstats
path: root/middleware
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-11-23 23:02:26 -0800
committerPinapelz <yukais@pinapelz.com>2025-11-23 23:03:20 -0800
commit4a7872b52b299376a0837631beeadff3ddecd143 (patch)
treeb52bc49c6c3fed44dbd463e5989b1f173d137ea9 /middleware
parentcd84e5668401bbb15ed00f447b1edc9934396baa (diff)
fix: image typing issue in middleware
Diffstat (limited to 'middleware')
-rw-r--r--middleware/src/app/[gameName]/page.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/middleware/src/app/[gameName]/page.tsx b/middleware/src/app/[gameName]/page.tsx
index bce87c8..f87edc1 100644
--- a/middleware/src/app/[gameName]/page.tsx
+++ b/middleware/src/app/[gameName]/page.tsx
@@ -255,7 +255,10 @@ export default async function GamePage({
is_ai_summary: Boolean(row.is_ai_summary),
en_headline: row.en_headline as string | null,
en_content: row.en_content as string | null,
- images,
+ images: images.map(img => ({
+ image: String(img.image),
+ link: img.link ? String(img.link) : null
+ })),
};
}
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage