mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 02:06:19 +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 { toUuid, getDateQuery, getTimestampInterval, parseFilters, rawQuery } = prisma;
|
||||
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 { filterQuery, joinSession } = parseFilters(filters, params);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user