mirror of https://github.com/zulip/zulip.git
queue_processors: Fix bug in handling removed push notifications.
Apparently, we were falling through to the "add" case after correctly processing the "remove" case, throwing a 500.
This commit is contained in:
parent
7acd640f6a
commit
165078b484
|
@ -308,7 +308,8 @@ class PushNotificationsWorker(QueueProcessingWorker): # nocoverage
|
|||
def consume(self, data: Mapping[str, Any]) -> None:
|
||||
if data.get("type", "add") == "remove":
|
||||
handle_remove_push_notification(data['user_profile_id'], data['message_id'])
|
||||
handle_push_notification(data['user_profile_id'], data)
|
||||
else:
|
||||
handle_push_notification(data['user_profile_id'], data)
|
||||
|
||||
# We probably could stop running this queue worker at all if ENABLE_FEEDBACK is False
|
||||
@assign_queue('feedback_messages')
|
||||
|
|
Loading…
Reference in New Issue