fix: convert game count to number for type-safe comparison (build fix)
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ export async function generateSitemaps(): Promise<{ id: string }[]> {
|
|||||||
.from(games)
|
.from(games)
|
||||||
.where(or(ne(games.syncStatus, "failed"), isNull(games.syncStatus))),
|
.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) {
|
if (count > GAMES_PER_SITEMAP) {
|
||||||
const pages = Math.ceil(count / GAMES_PER_SITEMAP)
|
const pages = Math.ceil(count / GAMES_PER_SITEMAP)
|
||||||
for (let i = 0; i < pages; i++) {
|
for (let i = 0; i < pages; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user