Add table alias to filterQuery. Closed  #3869

This commit is contained in:
Francis Cao committed 2025-12-19 13:32:20 -08:00
1 parent 86d2672c47
commit 3072f02f1b
2 files changed
+14 -7

No files matched your search

+4 -3
View File
@@ -41,14 +41,15 @@ async function relationalQuery(
currency,
});
const joinQuery = filterQuery
? `join website_event
const joinQuery =
filterQuery || cohortQuery
? `join website_event
on website_event.website_id = revenue.website_id
and website_event.session_id = revenue.session_id
and website_event.event_id = revenue.event_id
and website_event.website_id = {{websiteId::uuid}}
and website_event.created_at between {{startDate}} and {{endDate}}`
: '';
: '';
const chart = await rawQuery(
`