[Store] Fix query

This commit is contained in:
Christian Pauly 2019-08-08 14:24:23 +02:00
parent 3e62967852
commit 442d7631fb

View file

@ -197,7 +197,7 @@ class Store {
// removed from the database!
if (roomUpdate.limitedTimeline) {
txn.rawDelete("DELETE FROM Events WHERE room_id=?", [roomUpdate.id]);
txn.rawUpdate("UPDATE Rooms SET prev_batch=? WHERE id=?",
txn.rawUpdate("UPDATE Rooms SET prev_batch=? WHERE room_id=?",
[roomUpdate.prev_batch, roomUpdate.id]);
}
return null;