Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix typo in deactivation background job #5493

Merged
merged 1 commit into from
Jun 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5493.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Track deactivated accounts in the database.
2 changes: 1 addition & 1 deletion synapse/storage/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def _backgroud_update_set_deactivated_flag_txn(txn):

for user in rows:
if not user["count_tokens"] and not user["count_threepids"]:
self.set_user_deactivated_status_txn(txn, user["user_id"], True)
self.set_user_deactivated_status_txn(txn, user["name"], True)
rows_processed_nb += 1

logger.info("Marked %d rows as deactivated", rows_processed_nb)
Expand Down