Fix arguments in selectEventsSQL

Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
Cnly 2019-07-27 19:16:11 +08:00
parent 40fd47957a
commit 3742874433

View file

@ -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" +