Fixed realtime chart display.

This commit is contained in:
Mike Cao committed 2023-02-17 21:42:42 -08:00
1 parent 93b77672f3
commit 802c262cd9
14 files changed
+112 -75

No files matched your search

+6 -5
View File
@@ -26,12 +26,13 @@ function clickhouseQuery(websiteId: string, startAt: Date) {
return rawQuery(
`select
event_id,
website_id,
session_id,
created_at,
event_id as id,
website_id as websiteId,
session_id as sessionId,
created_at as createdAt,
toUnixTimestamp(created_at) as timestamp,
url,
event_name
event_name as eventName
from event
where event_type = ${EVENT_TYPE.customEvent}
and website_id = {websiteId:UUID}