Actually update the id, so it is correctly send in syncs

This commit is contained in:
Till Faelligen 2020-10-21 14:48:34 +02:00
parent 02a11d5a8f
commit d4a01d5595

View file

@ -49,7 +49,7 @@ const upsertReceipt = "" +
" (room_id, receipt_type, user_id, event_id, receipt_ts)" +
" VALUES ($1, $2, $3, $4, $5)" +
" ON CONFLICT (room_id, receipt_type, user_id)" +
" DO UPDATE SET event_id = $4, receipt_ts = $5" +
" DO UPDATE SET id = nextval('syncapi_stream_id'), event_id = $4, receipt_ts = $5" +
" RETURNING id"
const selectRoomReceipts = "" +