From d4a01d5595d47c0f5514acd10a4e6c2cd66ab827 Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Wed, 21 Oct 2020 14:48:34 +0200 Subject: [PATCH] Actually update the id, so it is correctly send in syncs --- syncapi/storage/postgres/receipt_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncapi/storage/postgres/receipt_table.go b/syncapi/storage/postgres/receipt_table.go index 349d418ef..68dba5559 100644 --- a/syncapi/storage/postgres/receipt_table.go +++ b/syncapi/storage/postgres/receipt_table.go @@ -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 = "" +