Skip to content

Commit

Permalink
Well okay then next
Browse files Browse the repository at this point in the history
  • Loading branch information
kashalls committed Nov 9, 2023
1 parent 262f095 commit 6b42803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const server = fastify(genFastifyOpts());
// Normally I would never condone this, but I lack the patience to deal with this correctly.
// This is just to get JSON.stringify to globally serialize BigInt's
BigInt.prototype['toJSON'] = function () {
return this.toString();
return Number(this);
};

if (dev) {
Expand Down

0 comments on commit 6b42803

Please sign in to comment.