i was lazy ok

This commit is contained in:
Lncvrt committed 2025-11-04 18:16:30 -07:00
1 parent 5a031c1dd1
commit 22ac21d79c
2 files changed
+3 -8

No files matched your search

+1 -6
View File
@@ -84,12 +84,7 @@ export async function handler(context: Context, db: MySql2Database) {
return false
})
const gamesRaw = await db.select().from(launcherGames).execute()
const games = gamesRaw.map(v => ({
...v,
cutOff: v.cutOff === -1 ? null : v.cutOff
}))
const games = await db.select().from(launcherGames).execute()
return jsonResponse({ versions, games })
}