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

Commit

Permalink
Fix typo in deactivation background job
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier committed Jun 19, 2019
1 parent 8fcd2ca commit 092e364
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit 092e364

Please sign in to comment.