mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fix typo in deactivation background job
This commit is contained in:
parent
5a28504c08
commit
4875746d82
1
changelog.d/5493.misc
Normal file
1
changelog.d/5493.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Track deactivated accounts in the database.
|
@ -662,7 +662,7 @@ class RegistrationStore(
|
|||||||
|
|
||||||
for user in rows:
|
for user in rows:
|
||||||
if not user["count_tokens"] and not user["count_threepids"]:
|
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
|
rows_processed_nb += 1
|
||||||
|
|
||||||
logger.info("Marked %d rows as deactivated", rows_processed_nb)
|
logger.info("Marked %d rows as deactivated", rows_processed_nb)
|
||||||
|
Loading…
Reference in New Issue
Block a user