Skip to content

Commit 7dc7f0a

Browse files
author
William Becker
committed
Because counts are of type big ints, and bigints may be bigger than JS ints, node-postgres handles them as strings. Opting-in to handling them as ints because it isn't really a problem here. This makes the event counts be handled in order properly.
See brianc/node-postgres#378
1 parent 05b6503 commit 7dc7f0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/db.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ var winston = require("winston");
77
var crypto = require("crypto");
88

99
var pg = require("pg");
10+
11+
pg.defaults.parseInt8 = true;
12+
1013
var Transaction = require("pg-transaction");
1114

1215
var nconf = require("./config");

0 commit comments

Comments
 (0)