mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-09-01 16:48:19 +00:00
fix(stats): fix radio presets query
This commit is contained in:
@@ -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
|
||||
`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user