fix column data in relational event data query

This commit is contained in:
Francis Cao 2023-08-07 14:41:41 -07:00
parent fc5a1f458b
commit 15575d7783
2 changed files with 12 additions and 12 deletions

View file

@ -21,10 +21,10 @@ async function relationalQuery(websiteId: string, filters: QueryFilters & { fiel
return rawQuery(
`
select
event_key as fieldName,
data_type as dataType,
string_value as fieldValue,
count(*) as total
event_key as "fieldName",
data_type as "dataType",
string_value as "fieldValue",
count(*) as "total"
from event_data
where website_id = {{websiteId::uuid}}
and created_at between {{startDate}} and {{endDate}}