Merge branch 'analytics' of https://github.com/umami-software/umami into dev

This commit is contained in:
Francis Cao
2025-11-26 11:03:50 -08:00

View File

@@ -62,7 +62,7 @@ async function relationalQuery(
${joinSessionQuery}
where revenue.website_id = {{websiteId::uuid}}
and revenue.created_at between {{startDate}} and {{endDate}}
and revenue.currency ilike {{currency}}
and revenue.currency = upper({{currency}})
${filterQuery}
group by x, t
order by t
@@ -83,7 +83,7 @@ async function relationalQuery(
${cohortQuery}
where revenue.website_id = {{websiteId::uuid}}
and revenue.created_at between {{startDate}} and {{endDate}}
and revenue.currency ilike {{currency}}
and revenue.currency = upper({{currency}})
${filterQuery}
group by session.country
`,
@@ -102,7 +102,7 @@ async function relationalQuery(
${joinSessionQuery}
where revenue.website_id = {{websiteId::uuid}}
and revenue.created_at between {{startDate}} and {{endDate}}
and revenue.currency ilike {{currency}}
and revenue.currency = upper({{currency}})
${filterQuery}
`,
queryParams,
@@ -154,7 +154,7 @@ async function clickhouseQuery(
${cohortQuery}
where website_revenue.website_id = {websiteId:UUID}
and website_revenue.created_at between {startDate:DateTime64} and {endDate:DateTime64}
and website_revenue.currency = {currency:String}
and website_revenue.currency = upper({currency:String})
${filterQuery}
group by x, t
order by t
@@ -182,7 +182,7 @@ async function clickhouseQuery(
${cohortQuery}
where website_revenue.website_id = {websiteId:UUID}
and website_revenue.created_at between {startDate:DateTime64} and {endDate:DateTime64}
and website_revenue.currency = {currency:String}
and website_revenue.currency = upper({currency:String})
${filterQuery}
group by website_event.country
order by value desc
@@ -205,7 +205,7 @@ async function clickhouseQuery(
${cohortQuery}
where website_revenue.website_id = {websiteId:UUID}
and website_revenue.created_at between {startDate:DateTime64} and {endDate:DateTime64}
and website_revenue.currency = {currency:String}
and website_revenue.currency = upper({currency:String})
${filterQuery}
`,
queryParams,