Mis-named function

This commit is contained in:
David Baker 2016-04-12 13:35:08 +01:00
parent d937f342bb
commit 7b39bcdaae
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class PushersRestServlet(ClientV1RestServlet):
requester = yield self.auth.get_user_by_req(request)
user = requester.user
pushers = yield self.hs.get_datastore().get_pushers_by_app_user_id(
pushers = yield self.hs.get_datastore().get_pushers_by_user_id(
user.to_string()
)

View File

@ -76,7 +76,7 @@ class PusherStore(SQLBaseStore):
defer.returnValue(rows)
@defer.inlineCallbacks
def get_pushers_by_app_user_id(self, user_id):
def get_pushers_by_user_id(self, user_id):
def r(txn):
sql = (
"SELECT * FROM pushers"