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
Quentin Gliech 2023-04-05 13:49:15 +02:00 committed by GitHub
parent 6d103373e2
commit 6eb3edec47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/15391.bugfix Normal file
View File

@ -0,0 +1 @@
Fix the `set_device_id_for_pushers_txn` background update crash.

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)