Merge pull request #1303 from umami-software/brian/um-19-bigint-breaking-ui

fix bigint ui
This commit is contained in:
Mike Cao 2022-07-15 23:38:39 -07:00 committed by GitHub
commit ff18a596ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {