Remove bigint.

This commit is contained in:
Brian Cao committed 2023-07-11 18:52:52 -07:00
1 parent 4d41527f94
commit a9617cb704
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -104,7 +104,7 @@ export interface WebsiteEventDataFields {
field: string;
type: number;
value?: string;
total: bigint;
total: number;
}
export interface WebsitePageviews {
+2 -2
View File
@@ -32,10 +32,10 @@ export default async (
const data = results.reduce(
(obj, row) => {
obj.records += row.total;
obj.records += Number(row.total);
return obj;
},
{ fields: results.length, records: BigInt(0) },
{ fields: results.length, records: 0 },
);
return ok(res, data);