Make select more sensible when dseleting access tokens, rename pusher deletion to match access token deletion and make exception arg optional.

This commit is contained in:
David Baker 2016-03-11 14:34:09 +00:00
parent f523177850
commit af59826a2f
3 changed files with 5 additions and 7 deletions

View file

@ -92,7 +92,7 @@ class PusherPool:
yield self.remove_pusher(p['app_id'], p['pushkey'], p['user_name'])
@defer.inlineCallbacks
def remove_pushers_by_user_except_access_tokens(self, user_id, except_token_ids):
def remove_pushers_by_user(self, user_id, except_token_ids=[]):
all = yield self.store.get_all_pushers()
logger.info(
"Removing all pushers for user %s except access tokens ids %r",