This commit is contained in:
Matthew Hodgson 2020-08-31 23:28:55 +03:00
parent 7b38d4857f
commit e5899843ea

View file

@ -42,8 +42,8 @@ CREATE INDEX IF NOT EXISTS syncapi_peeks_user_id_device_id_idx ON syncapi_peeks(
const insertPeekSQL = "" + const insertPeekSQL = "" +
"INSERT INTO syncapi_peeks" + "INSERT INTO syncapi_peeks" +
" (id, room_id, user_id, device_id, creation_ts)" + " (room_id, user_id, device_id, creation_ts)" +
" VALUES ($1, $2, $3, $4, $5)" " VALUES ($1, $2, $3, $4)"
const deletePeekSQL = "" + const deletePeekSQL = "" +
"DELETE FROM syncapi_peeks WHERE room_id = $1 AND user_id = $2 and device_id = $3" "DELETE FROM syncapi_peeks WHERE room_id = $1 AND user_id = $2 and device_id = $3"