Add queries for new schema.

This commit is contained in:
Brian Cao 2022-11-17 22:27:33 -08:00
parent b0c7980a20
commit 5aa8187e42
25 changed files with 699 additions and 306 deletions

View file

@ -52,8 +52,8 @@ export default async (
const prevEndDate = new Date(+end_at - distance);
const metrics = await getWebsiteStats(websiteId, {
start_at: startDate,
end_at: endDate,
startDate,
endDate,
filters: {
url,
referrer,
@ -64,8 +64,8 @@ export default async (
},
});
const prevPeriod = await getWebsiteStats(websiteId, {
start_at: prevStartDate,
end_at: prevEndDate,
startDate: prevStartDate,
endDate: prevEndDate,
filters: {
url,
referrer,