diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-11-16 07:43:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 12:43:53 +0000 |
commit | 24b61f379ac1fc740e1b569b85363e2a0411883a (patch) | |
tree | c60704d0e349d73b0dd39caf45c61c087f143f3b /synapse/storage/databases | |
parent | Misc typing fixes for tests, part 2 of N (#11330) (diff) | |
download | synapse-24b61f379ac1fc740e1b569b85363e2a0411883a.tar.xz |
Add ability to un-shadow-ban via the admin API. (#11347)
Diffstat (limited to 'synapse/storage/databases')
-rw-r--r-- | synapse/storage/databases/main/registration.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/registration.py b/synapse/storage/databases/main/registration.py index 6c7d6ba508..5e55440570 100644 --- a/synapse/storage/databases/main/registration.py +++ b/synapse/storage/databases/main/registration.py @@ -476,7 +476,7 @@ class RegistrationWorkerStore(CacheInvalidationWorkerStore): shadow_banned: true iff the user is to be shadow-banned, false otherwise. """ - def set_shadow_banned_txn(txn): + def set_shadow_banned_txn(txn: LoggingTransaction) -> None: user_id = user.to_string() self.db_pool.simple_update_one_txn( txn, |