mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 07:52:56 +01:00
No id field on user
This commit is contained in:
parent
92b20713d7
commit
7693f24792
1 changed files with 1 additions and 5 deletions
|
@ -112,14 +112,10 @@ class RegistrationStore(SQLBaseStore):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def user_delete_access_tokens_apart_from(self, user_id, token_id):
|
def user_delete_access_tokens_apart_from(self, user_id, token_id):
|
||||||
user = yield self.get_user_by_id(user_id)
|
|
||||||
if not user:
|
|
||||||
raise Exception("No such user!")
|
|
||||||
|
|
||||||
yield self._execute(
|
yield self._execute(
|
||||||
"delete_access_tokens_apart_from", None,
|
"delete_access_tokens_apart_from", None,
|
||||||
"DELETE FROM access_tokens WHERE user_id = ? AND id != ?",
|
"DELETE FROM access_tokens WHERE user_id = ? AND id != ?",
|
||||||
user['id'], token_id
|
user_id, token_id
|
||||||
)
|
)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
|
Loading…
Reference in a new issue