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

@ -67,7 +67,7 @@ async function clickhouseQuery(
min(created_at) min_time,
max(created_at) max_time
from event
where event_name = ''
where event_type = 1
and website_id = $1
and rev_id = $2
and ${getBetweenDates('created_at', startDate, endDate)}