i was lazy ok

This commit is contained in:
2025-11-04 18:16:30 -07:00
parent 5a031c1dd1
commit 22ac21d79c
2 changed files with 3 additions and 8 deletions

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 })
}