From e5899843eadd93458cb4caad4f2d9129d9b70759 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 31 Aug 2020 23:28:55 +0300 Subject: [PATCH] fix SQL --- syncapi/storage/sqlite3/peeks_table.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncapi/storage/sqlite3/peeks_table.go b/syncapi/storage/sqlite3/peeks_table.go index 7e8d4c69..c013a635 100644 --- a/syncapi/storage/sqlite3/peeks_table.go +++ b/syncapi/storage/sqlite3/peeks_table.go @@ -42,8 +42,8 @@ CREATE INDEX IF NOT EXISTS syncapi_peeks_user_id_device_id_idx ON syncapi_peeks( const insertPeekSQL = "" + "INSERT INTO syncapi_peeks" + - " (id, room_id, user_id, device_id, creation_ts)" + - " VALUES ($1, $2, $3, $4, $5)" + " (room_id, user_id, device_id, creation_ts)" + + " VALUES ($1, $2, $3, $4)" const deletePeekSQL = "" + "DELETE FROM syncapi_peeks WHERE room_id = $1 AND user_id = $2 and device_id = $3"