Skip to content

Commit

Permalink
fix hardcoded currency query
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscao633 committed Oct 21, 2024
1 parent 498245d commit d72a82e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/queries/analytics/reports/getRevenue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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}}
Expand Down

0 comments on commit d72a82e

Please sign in to comment.