fix ordering for revenue country card

This commit is contained in:
Francis Cao 2025-06-05 07:31:47 -07:00
parent 6235aaf1c7
commit 21d081f7d3

View file

@ -225,6 +225,7 @@ async function clickhouseQuery(
and ed.created_at between {startDate:DateTime64} and {endDate:DateTime64}
and positionCaseInsensitive(ed.data_key, 'revenue') > 0
group by s.country
order by value desc
`,
{ websiteId, startDate, endDate, currency },
);