From 4f12933f42b7b44c772fe80cb84f21d4c6294e13 Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Fri, 15 Jul 2022 22:21:37 -0700 Subject: [PATCH] checkpoint --- lib/db.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/db.js b/lib/db.js index c5d144ef..3d89210c 100644 --- a/lib/db.js +++ b/lib/db.js @@ -11,7 +11,7 @@ import { import moment from 'moment-timezone'; BigInt.prototype.toJSON = function () { - return this.toString(); + return Number(this); }; const options = { @@ -235,10 +235,10 @@ export function runAnalyticsQuery(relational, clickhouse) { const db = getAnalyticsDatabase(); if (db === POSTGRESQL || db === MYSQL) { - return runQuery(relational); + return relational(); } if (db === CLICKHOUSE) { - return runQuery(clickhouse); + return runQuery(clickhouse()); } }