mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Fix the 'set_device_id_for_pushers_txn' background update. (#15391)
Refer to the correct field from the response when updating the background update progress.
This commit is contained in:
parent
6d103373e2
commit
6eb3edec47
2 changed files with 2 additions and 1 deletions
1
changelog.d/15391.bugfix
Normal file
1
changelog.d/15391.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix the `set_device_id_for_pushers_txn` background update crash.
|
|
@ -562,7 +562,7 @@ class PusherBackgroundUpdatesStore(SQLBaseStore):
|
|||
)
|
||||
|
||||
self.db_pool.updates._background_update_progress_txn(
|
||||
txn, "set_device_id_for_pushers", {"pusher_id": rows[-1]["id"]}
|
||||
txn, "set_device_id_for_pushers", {"pusher_id": rows[-1]["pusher_id"]}
|
||||
)
|
||||
|
||||
return len(rows)
|
||||
|
|
Loading…
Reference in a new issue