mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix hardcoded currency query
This commit is contained in:
parent
9a5d18f38b
commit
1073ed03a2
1 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ async function relationalQuery(
|
|||
join (select website_event_id
|
||||
from event_data
|
||||
where data_key ${like} '%currency%'
|
||||
and string_value = 'USD') currency
|
||||
and string_value = {{currency}}) currency
|
||||
on currency.website_event_id = ed.website_event_id
|
||||
where ed.website_id = {{websiteId::uuid}}
|
||||
and ed.created_at between {{startDate}} and {{endDate}}
|
||||
|
|
@ -103,7 +103,7 @@ async function relationalQuery(
|
|||
join (select website_event_id
|
||||
from event_data
|
||||
where data_key ${like} '%currency%'
|
||||
and string_value = 'USD') currency
|
||||
and string_value = {{currency}}) currency
|
||||
on currency.website_event_id = ed.website_event_id
|
||||
where ed.website_id = {{websiteId::uuid}}
|
||||
and ed.created_at between {{startDate}} and {{endDate}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue