mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
resetDate should be a Date object.
This commit is contained in:
parent
98028f1756
commit
e63591e35d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue