Fix resetAt date parsing error for CH

This commit is contained in:
Francis Cao 2023-09-20 12:43:59 -07:00
parent 84e13a2a10
commit 3f6fb4654b
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ async function parseFilters(websiteId: string, filters: QueryFilters = {}, optio
params: {
...normalizeFilters(filters),
websiteId,
startDate: maxDate(filters.startDate, website.resetAt),
startDate: maxDate(filters.startDate, new Date(website.resetAt)),
websiteDomain: website.domain,
},
};

View File

@ -297,7 +297,7 @@ export async function resetWebsite(
}),
]).then(async data => {
if (cache.enabled) {
await cache.storeWebsite(data[2]);
await cache.storeWebsite(data[3]);
}
return data;