Fix resetAt date parsing error for CH

This commit is contained in:
Francis Cao committed 2023-09-20 12:43:59 -07:00
1 parent 84e13a2a10
commit 3f6fb4654b
2 files changed
+2 -2

No files matched your search

+1 -1
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,
},
};
+1 -1
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;