Fix typo in deactivation background job

code_spécifique_watcha
Brendan Abolivier 6 years ago
parent 8fcd2ca907
commit 092e36457a
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
  1. 1
      changelog.d/5493.misc
  2. 2
      synapse/storage/registration.py

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

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

Loading…
Cancel
Save