mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
fc943b729c
@ -104,7 +104,7 @@ export interface WebsiteEventDataFields {
|
|||||||
field: string;
|
field: string;
|
||||||
type: number;
|
type: number;
|
||||||
value?: string;
|
value?: string;
|
||||||
total: bigint;
|
total: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface WebsitePageviews {
|
export interface WebsitePageviews {
|
||||||
|
@ -32,10 +32,10 @@ export default async (
|
|||||||
|
|
||||||
const data = results.reduce(
|
const data = results.reduce(
|
||||||
(obj, row) => {
|
(obj, row) => {
|
||||||
obj.records += row.total;
|
obj.records += Number(row.total);
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
{ fields: results.length, records: BigInt(0) },
|
{ fields: results.length, records: 0 },
|
||||||
);
|
);
|
||||||
|
|
||||||
return ok(res, data);
|
return ok(res, data);
|
||||||
|
Loading…
Reference in New Issue
Block a user