fix clickhouse calls

This commit is contained in:
Brian Cao 2022-09-23 22:29:54 -07:00
parent dfac7e1af5
commit c6aefd7e6d
10 changed files with 41 additions and 34 deletions

View file

@ -44,7 +44,7 @@ async function clickhouseQuery(websites, start_at) {
language,
country
from event
where ${websites && websites.length > 0 ? `(website_id in (${websites.join[',']})` : '0 = 0'}
where ${websites && websites.length > 0 ? `website_id in (${websites.join(',')})` : '0 = 0'}
and created_at >= ${getDateFormat(start_at)}`,
);
}