Skip to content
Snippets Groups Projects
Commit 7693f247 authored by David Baker's avatar David Baker
Browse files

No id field on user

parent 92b20713
No related branches found
No related tags found
No related merge requests found
......@@ -112,14 +112,10 @@ class RegistrationStore(SQLBaseStore):
@defer.inlineCallbacks
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(
"delete_access_tokens_apart_from", None,
"DELETE FROM access_tokens WHERE user_id = ? AND id != ?",
user['id'], token_id
user_id, token_id
)
@defer.inlineCallbacks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment