From ea735c1b49441ada20db33a25957521c5a9f4605 Mon Sep 17 00:00:00 2001 From: gc <30398469+gc@users.noreply.github.com> Date: Wed, 28 Feb 2024 02:47:01 +1100 Subject: [PATCH] Fix bigint bug --- src/lib/analytics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/analytics.ts b/src/lib/analytics.ts index 1d60da2474..629e2a067d 100644 --- a/src/lib/analytics.ts +++ b/src/lib/analytics.ts @@ -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))