From 08cd77817794275d446c0811a8258d0b442e455d Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Fri, 15 Jul 2022 22:23:57 -0700 Subject: [PATCH] fix bigint ui --- lib/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.js b/lib/db.js index 12bfd6d3..61fcac91 100644 --- a/lib/db.js +++ b/lib/db.js @@ -2,7 +2,7 @@ import { PrismaClient } from '@prisma/client'; import chalk from 'chalk'; BigInt.prototype.toJSON = function () { - return this.toString(); + return Number(this); }; const options = {