diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-06-19 11:58:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 11:58:52 +0100 |
commit | 18f0b69c49cce2cd9362cead5292faeb634294a6 (patch) | |
tree | f54e62a8abac9736ee1f83028db7302d9fc30132 | |
parent | Merge pull request #5484 from matrix-org/babolivier/dinsic_access_rules (diff) | |
parent | Fix typo in deactivation background job (diff) | |
download | synapse-18f0b69c49cce2cd9362cead5292faeb634294a6.tar.xz |
Merge pull request #5495 from matrix-org/babolivier/deactivate_bg_job_typo dinsic_2019-06-19
Port "Fix typo in deactivation background job" to dinsic
-rw-r--r-- | changelog.d/5493.misc | 1 | ||||
-rw-r--r-- | synapse/storage/registration.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/5493.misc b/changelog.d/5493.misc new file mode 100644 index 0000000000..365e49d634 --- /dev/null +++ b/changelog.d/5493.misc @@ -0,0 +1 @@ +Track deactivated accounts in the database. diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py index d36917e4d6..0b3c656e90 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py @@ -662,7 +662,7 @@ class RegistrationStore( 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) |