Fix a couple of errors when deleting pushers

This commit is contained in:
Mark Haines 2016-03-15 17:47:36 +00:00
parent 6df1c79c22
commit ee32d622ce
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ class PusherStore(SQLBaseStore):
@defer.inlineCallbacks @defer.inlineCallbacks
def delete_pusher_by_app_id_pushkey_user_id(self, app_id, pushkey, user_id): def delete_pusher_by_app_id_pushkey_user_id(self, app_id, pushkey, user_id):
def delete_pusher_txn(txn, stream_id): def delete_pusher_txn(txn, stream_id):
self._simple_delete_one( self._simple_delete_one_txn(
txn, txn,
"pushers", "pushers",
{"app_id": app_id, "pushkey": pushkey, "user_name": user_id} {"app_id": app_id, "pushkey": pushkey, "user_name": user_id}
@ -145,7 +145,7 @@ class PusherStore(SQLBaseStore):
txn, txn,
"deleted_pushers", "deleted_pushers",
{"app_id": app_id, "pushkey": pushkey, "user_id": user_id}, {"app_id": app_id, "pushkey": pushkey, "user_id": user_id},
{"stream_id", stream_id}, {"stream_id": stream_id},
) )
with self._pushers_id_gen.get_next() as stream_id: with self._pushers_id_gen.get_next() as stream_id:
yield self.runInteraction( yield self.runInteraction(