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

Commit

Permalink
Merge pull request #5493 from matrix-org/babolivier/deactivate_bg_job…
Browse files Browse the repository at this point in the history
…_typo

Fix typo in deactivation background job
  • Loading branch information
babolivier authored Jun 19, 2019
2 parents 8fcd2ca + 092e364 commit 10f9e35
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 10f9e35

Please sign in to comment.