From 3b7000a4362c940f360abbaf7d434c53b27c9ffe Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Wed, 29 Mar 2023 11:16:02 -0700 Subject: [PATCH] fix active bug --- queries/analytics/stats/getActiveVisitors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries/analytics/stats/getActiveVisitors.ts b/queries/analytics/stats/getActiveVisitors.ts index 60a1e5c1..89f092c1 100644 --- a/queries/analytics/stats/getActiveVisitors.ts +++ b/queries/analytics/stats/getActiveVisitors.ts @@ -33,7 +33,7 @@ async function clickhouseQuery(websiteId: string) { return rawQuery( `select count(distinct session_id) x - from event + from website_event where website_id = {websiteId:UUID} and created_at >= {startAt:DateTime('UTC')}`, params,