mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 18:26:20 +01:00
resetDate should be a Date object.
This commit is contained in:
parent
98028f1756
commit
e63591e35d
@ -23,7 +23,7 @@ async function relationalQuery(
|
|||||||
const { startDate, endDate, filters = {} } = criteria;
|
const { startDate, endDate, filters = {} } = criteria;
|
||||||
const { toUuid, getDateQuery, getTimestampInterval, parseFilters, rawQuery } = prisma;
|
const { toUuid, getDateQuery, getTimestampInterval, parseFilters, rawQuery } = prisma;
|
||||||
const website = await loadWebsite(websiteId);
|
const website = await loadWebsite(websiteId);
|
||||||
const resetDate = website?.resetAt || website?.createdAt;
|
const resetDate = new Date(website?.resetAt || website?.createdAt);
|
||||||
const params: any = [websiteId, resetDate, startDate, endDate];
|
const params: any = [websiteId, resetDate, startDate, endDate];
|
||||||
const { filterQuery, joinSession } = parseFilters(filters, params);
|
const { filterQuery, joinSession } = parseFilters(filters, params);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user