Skip to content
Snippets Groups Projects
Unverified Commit 5b857b77 authored by Patrick Cloke's avatar Patrick Cloke Committed by GitHub
Browse files

Don't error if deleting a non-existent pusher. (#9121)

parent 4a55d267
No related branches found
No related tags found
No related merge requests found
Fix spurious errors in logs when deleting a non-existant pusher.
...@@ -344,7 +344,9 @@ class PusherStore(PusherWorkerStore): ...@@ -344,7 +344,9 @@ class PusherStore(PusherWorkerStore):
txn, self.get_if_user_has_pusher, (user_id,) txn, self.get_if_user_has_pusher, (user_id,)
) )
self.db_pool.simple_delete_one_txn( # It is expected that there is exactly one pusher to delete, but
# if it isn't there (or there are multiple) delete them all.
self.db_pool.simple_delete_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},
......
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