fix(stats): fix radio presets query

This commit is contained in:
Enot (ded) Skelly
2026-06-10 13:46:21 -07:00
parent 205eaafbe9
commit ef5257db66
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -741,7 +741,7 @@ LIMIT $3;
SELECT preset, iata, source_type, count
FROM mv_radio_presets
WHERE ($1::text = '' OR preset = $1::text)
AND ($2::text = '' OR po.iata = ANY(string_to_array($2::text, ',')))
AND ($2::text = '' OR iata = ANY(string_to_array($2::text, ',')))
ORDER BY preset, iata, source_type;
-- name: GetScopeStats :many
+1 -1
View File
@@ -803,7 +803,7 @@ const getRadioPresets = `-- name: GetRadioPresets :many
SELECT preset, iata, source_type, count
FROM mv_radio_presets
WHERE ($1::text = '' OR preset = $1::text)
AND ($2::text = '' OR po.iata = ANY(string_to_array($2::text, ',')))
AND ($2::text = '' OR iata = ANY(string_to_array($2::text, ',')))
ORDER BY preset, iata, source_type
`