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

@ -32,7 +32,7 @@ async function clickhouseQuery(websites, startAt) {
created_at,
url
from event
where event_name = ''
where event_type = 1
and ${
websites && websites.length > 0
? `website_id in (${getCommaSeparatedStringFormat(websites)})`