Skip to content

Commit

Permalink
Fix bigint bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Feb 27, 2024
1 parent 3baa510 commit ea735c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function analyticsTick() {
await Promise.all(
[
'SELECT COUNT(*)::int FROM users WHERE "minion.hasBought" = true;',
'SELECT SUM("sacrificedValue")::int AS count FROM users;',
'SELECT SUM("sacrificedValue") AS count FROM users;',
'SELECT COUNT(*)::int FROM users WHERE "minion.ironman" = true;',
'SELECT SUM("GP") AS count FROM users;'
].map(query => prisma.$queryRawUnsafe(query))
Expand Down

0 comments on commit ea735c1

Please sign in to comment.