Re-add events. Fix event_type queries.

This commit is contained in:
Brian Cao 2023-01-04 13:06:24 -08:00
parent 10dabc60b6
commit 45cbc6a1af
6 changed files with 52 additions and 23 deletions

View file

@ -58,7 +58,7 @@ async function clickhouseQuery(
from event as x
where website_id = $1
and rev_id = $2
and event_name = ''
and event_type = 1
and ${getBetweenDates('created_at', startDate, endDate)}
${filterQuery}
group by x