From 72f71f14669620e820365df6926e6c5291689fad Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Tue, 20 Oct 2020 08:05:37 +0200 Subject: [PATCH] Fix postgres query... --- syncapi/storage/postgres/receipt_table.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncapi/storage/postgres/receipt_table.go b/syncapi/storage/postgres/receipt_table.go index 74ba39221..349d418ef 100644 --- a/syncapi/storage/postgres/receipt_table.go +++ b/syncapi/storage/postgres/receipt_table.go @@ -20,6 +20,7 @@ import ( "fmt" "github.com/lib/pq" + "github.com/matrix-org/dendrite/eduserver/api" "github.com/matrix-org/dendrite/internal" "github.com/matrix-org/dendrite/internal/sqlutil" @@ -54,7 +55,7 @@ const upsertReceipt = "" + const selectRoomReceipts = "" + "SELECT room_id, receipt_type, user_id, event_id, receipt_ts" + " FROM syncapi_receipts" + - " WHERE room_id = $1 AND id > $2" + " WHERE room_id = ANY($1) AND id > $2" type receiptStatements struct { db *sql.DB