From 37428744336b57d441ac1f1f574697bcbb28f0ef Mon Sep 17 00:00:00 2001 From: Cnly Date: Sat, 27 Jul 2019 19:16:11 +0800 Subject: [PATCH] Fix arguments in selectEventsSQL Signed-off-by: Alex Chen --- syncapi/storage/output_room_events_table.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncapi/storage/output_room_events_table.go b/syncapi/storage/output_room_events_table.go index 34632aedf..e3d0b19de 100644 --- a/syncapi/storage/output_room_events_table.go +++ b/syncapi/storage/output_room_events_table.go @@ -60,7 +60,8 @@ const insertEventSQL = "" + ") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING id" const selectEventsSQL = "" + - "SELECT id, event_json FROM syncapi_output_room_events WHERE event_id = ANY($1)" + "SELECT id, event_json, device_id, transaction_id" + + " FROM syncapi_output_room_events WHERE event_id = ANY($1)" const selectRecentEventsSQL = "" + "SELECT id, event_json, device_id, transaction_id FROM syncapi_output_room_events" +