[Store] Fix query
This commit is contained in:
parent
3e62967852
commit
442d7631fb
|
@ -197,7 +197,7 @@ class Store {
|
||||||
// removed from the database!
|
// removed from the database!
|
||||||
if (roomUpdate.limitedTimeline) {
|
if (roomUpdate.limitedTimeline) {
|
||||||
txn.rawDelete("DELETE FROM Events WHERE room_id=?", [roomUpdate.id]);
|
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]);
|
[roomUpdate.prev_batch, roomUpdate.id]);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue