From a1d0235416970ec80b11710b0741e30474877fe1 Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 7 Jul 2022 05:55:43 -0700 Subject: [PATCH] Added handling for BigInt values. --- lib/db.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/db.js b/lib/db.js index 755696f4..12bfd6d3 100644 --- a/lib/db.js +++ b/lib/db.js @@ -1,6 +1,10 @@ import { PrismaClient } from '@prisma/client'; import chalk from 'chalk'; +BigInt.prototype.toJSON = function () { + return this.toString(); +}; + const options = { log: [ {