summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-05-01 13:55:42 +0100
committerDavid Baker <dave@matrix.org>2015-05-01 13:55:42 +0100
commit7693f24792d161c4c161de4a8b6e9d3538837284 (patch)
tree1290d95cd1b0a46eee8ec2b5495a68842aad7a8a
parentMore missed get_user_by_id API changes (diff)
downloadsynapse-7693f24792d161c4c161de4a8b6e9d3538837284.tar.xz
No id field on user
Diffstat (limited to '')
-rw-r--r--synapse/storage/registration.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 9351342439..ff0a2a9e8b 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -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