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.pull/15403/head
parent
6d103373e2
commit
6eb3edec47
|
@ -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(
|
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)
|
return len(rows)
|
||||||
|
|
Loading…
Reference in New Issue