From 027793f122cd6db9cf155c01e71995b4b2432c7b Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 29 Jan 2021 10:19:05 +0000 Subject: [PATCH] Revert query change --- syncapi/storage/postgres/current_room_state_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncapi/storage/postgres/current_room_state_table.go b/syncapi/storage/postgres/current_room_state_table.go index c232f265d..ce4509ff4 100644 --- a/syncapi/storage/postgres/current_room_state_table.go +++ b/syncapi/storage/postgres/current_room_state_table.go @@ -84,7 +84,7 @@ const selectCurrentStateSQL = "" + " AND ( $4::text[] IS NULL OR type LIKE ANY($4) )" + " AND ( $5::text[] IS NULL OR NOT(type LIKE ANY($5)) )" + " AND ( $6::bool IS NULL OR contains_url = $6 )" + - " AND event_id != ANY($7)" + + " AND NOT (event_id = ANY($7))" + " LIMIT $8" const selectJoinedUsersSQL = "" +