Merge pull request #5495 from matrix-org/babolivier/deactivate_bg_job_typo

Port "Fix typo in deactivation background job" to dinsic
pull/5542/head dinsic_2019-06-19
Brendan Abolivier 2019-06-19 11:58:52 +01:00 committed by GitHub
commit 18f0b69c49
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/5493.misc Normal file
View File

@ -0,0 +1 @@
Track deactivated accounts in the database.

View File

@ -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)