mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 17:56:19 +03:00
Use correct table
This commit is contained in:
parent
76cc6629de
commit
2e8f5d66da
1 changed files with 1 additions and 1 deletions
|
@ -1993,7 +1993,7 @@ class EventsBackgroundUpdatesStore(StreamWorkerStore, StateDeltasStore, SQLBaseS
|
|||
INNER JOIN events AS e USING (event_id)
|
||||
LEFT JOIN rooms AS r ON (c.room_id = r.room_id)
|
||||
WHERE (c.room_id, c.user_id) > (?, ?)
|
||||
ORDER BY c.room_id ASC, c.stream_ordering ASC, c.user_id ASC
|
||||
ORDER BY c.room_id ASC, e.stream_ordering ASC, c.user_id ASC
|
||||
LIMIT ?
|
||||
""",
|
||||
(last_room_id, last_user_id, batch_size),
|
||||
|
|
Loading…
Reference in a new issue