fix relational queries for new screens

This commit is contained in:
Francis Cao 2024-08-19 10:28:10 -07:00
parent 66510fd441
commit 7ae3c790cd
3 changed files with 12 additions and 11 deletions

View file

@ -21,7 +21,7 @@ async function relationalQuery(websiteId: string, filters: QueryFilters) {
select
${getDateWeeklySQL('created_at')} as time,
count(distinct session_id) as value
from website_event_stats_hourly
from website_event
where website_id = {{websiteId::uuid}}
and created_at between {{startDate}} and {{endDate}}
group by time