Skip to content

Commit def21b5

Browse files
Fix overflow error
1 parent 96913ef commit def21b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/controllers/getDroplets/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const getDroplets =
2525
change: number;
2626
place: number;
2727
}>(
28-
'SELECT (points + points_l1 + points_l2)::int as points, change::int as change, place::int as place FROM user_points_public WHERE address = $1 LIMIT 1',
28+
'SELECT (points + points_l1 + points_l2)::bigint as points, change::bigint as change, place::int as place FROM user_points_public WHERE address = $1 LIMIT 1',
2929
[address],
3030
);
3131
row = result.rows[0];

0 commit comments

Comments
 (0)