Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Added handling for BigInt values.

mikea1d023541697
diff --git a/lib/db.js b/lib/db.js
index 755696f4a..12bfd6d3c 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: [
{