Fixed reports.

This commit is contained in:
Mike Cao 2025-02-01 16:20:22 -08:00
parent 3e9cb66db2
commit 530d6fb323
12 changed files with 59 additions and 33 deletions

View file

@ -42,7 +42,7 @@ async function relationalQuery(
return rawQuery(
`
select ${column} as "value", count(*)
select ${column} as "value", count(*) as "count"
from website_event
inner join session
on session.session_id = website_event.session_id
@ -98,7 +98,7 @@ async function clickhouseQuery(
return rawQuery(
`
select ${column} as value, count(*)
select ${column} as "value", count(*) as "count"
from website_event
where website_id = {websiteId:UUID}
and created_at between {startDate:DateTime64} and {endDate:DateTime64}