update CH event to website_event

This commit is contained in:
Francis Cao 2023-03-29 11:06:12 -07:00
parent 05933ff1d2
commit 95ed8a09aa
12 changed files with 15 additions and 142 deletions

View file

@ -72,7 +72,7 @@ async function clickhouseQuery(
count(*) c,
min(created_at) min_time,
max(created_at) max_time
from event
from website_event
where event_type = ${EVENT_TYPE.pageView}
and website_id = {websiteId:UUID}
and created_at >= ${getDateFormat(resetDate)}