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:
Quentin Gliech
2023-04-05 07:49:15 -04:00
committed by GitHub
parent 6d103373e2
commit 6eb3edec47
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Fix the `set_device_id_for_pushers_txn` background update crash.
+1 -1
View File
@@ -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)