mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-02 15:41:57 +00:00
Fix 'NoneType' not iterable in /deactivate
make sure we actually return a value from user_delete_access_tokens
This commit is contained in:
parent
5ef5e14ecc
commit
889102315e
@ -241,7 +241,6 @@ class RegistrationStore(background_updates.BackgroundUpdateStore):
|
|||||||
"user_set_password_hash", user_set_password_hash_txn
|
"user_set_password_hash", user_set_password_hash_txn
|
||||||
)
|
)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
|
||||||
def user_delete_access_tokens(self, user_id, except_token_id=None,
|
def user_delete_access_tokens(self, user_id, except_token_id=None,
|
||||||
device_id=None):
|
device_id=None):
|
||||||
"""
|
"""
|
||||||
@ -290,7 +289,7 @@ class RegistrationStore(background_updates.BackgroundUpdateStore):
|
|||||||
|
|
||||||
return tokens_and_devices
|
return tokens_and_devices
|
||||||
|
|
||||||
yield self.runInteraction(
|
return self.runInteraction(
|
||||||
"user_delete_access_tokens", f,
|
"user_delete_access_tokens", f,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user