From bad8d55cf479551c9b9677c97862ea7808236949 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Mon, 25 May 2026 21:26:01 +0800 Subject: [PATCH] fix: convert game count to number for type-safe comparison (build fix) --- app/sitemap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sitemap.ts b/app/sitemap.ts index 94fc886..7614620 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -41,7 +41,7 @@ export async function generateSitemaps(): Promise<{ id: string }[]> { .from(games) .where(or(ne(games.syncStatus, "failed"), isNull(games.syncStatus))), ) - const count = countResult?.[0]?.count ?? 0 + const count = Number(countResult?.[0]?.count ?? 0) if (count > GAMES_PER_SITEMAP) { const pages = Math.ceil(count / GAMES_PER_SITEMAP) for (let i = 0; i < pages; i++) {