Skip to content

Commit

Permalink
Fix tame bigint bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Feb 26, 2024
1 parent d3fe14d commit 5cf09e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/tames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ for (const override of overrides) {
export async function getIgneTameKC(tame: Tame) {
const result = await prisma.$queryRaw<
{ mid: number; kc: number }[]
>`SELECT (data->>'monsterID')::int AS mid, SUM((data->>'quantity')::int) AS kc
>`SELECT (data->>'monsterID')::int AS mid, SUM((data->>'quantity')::int)::int AS kc
FROM tame_activity
WHERE tame_id = ${tame.id}
AND completed = true
Expand Down

0 comments on commit 5cf09e0

Please sign in to comment.