mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Remove bigint.
This commit is contained in:
parent
4d41527f94
commit
a9617cb704
2 changed files with 3 additions and 3 deletions
|
|
@ -104,7 +104,7 @@ export interface WebsiteEventDataFields {
|
|||
field: string;
|
||||
type: number;
|
||||
value?: string;
|
||||
total: bigint;
|
||||
total: number;
|
||||
}
|
||||
|
||||
export interface WebsitePageviews {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue