diff --git a/users/Profpatsch/whatcd-resolver/src/Redacted.hs b/users/Profpatsch/whatcd-resolver/src/Redacted.hs index 14714e3a4..422f5c89b 100644 --- a/users/Profpatsch/whatcd-resolver/src/Redacted.hs +++ b/users/Profpatsch/whatcd-resolver/src/Redacted.hs @@ -678,7 +678,7 @@ getBestTorrents opts = do ON (NOT ?::bool OR is_favourite) WHERE -- filter by artist id - (?::bool OR (to_jsonb(?::int) <@ (jsonb_path_query_array(full_json_result, '$.artists[*].id')))) + (?::bool OR (?::int = any (artist_ids))) -- filter by torrent ids AND (?::bool OR torrent_id = ANY (?::int[]))