fix filter params

This commit is contained in:
Francis Cao 2023-07-31 11:42:47 -07:00
parent 95d824542f
commit 7e112b8469
6 changed files with 11 additions and 5 deletions

View file

@ -42,7 +42,12 @@ async function relationalQuery(
group by 1
order by 2 desc
limit 100`,
{ ...filters, websiteId, startDate: maxDate(startDate, website.resetAt), endDate },
{
websiteId,
startDate: maxDate(startDate, website.resetAt),
endDate,
...filters,
},
);
}