From 62dd1b85b773f5d327fef7e4180974a433a2b758 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 3 Nov 2022 09:11:12 +0100 Subject: [PATCH] Don't treat notification for a deleted event as an error Just cancel the job Closes #1180 Signed-off-by: Thomas Citharel --- lib/service/workers/notification.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/service/workers/notification.ex b/lib/service/workers/notification.ex index f79091041..c76e41550 100644 --- a/lib/service/workers/notification.ex +++ b/lib/service/workers/notification.ex @@ -125,6 +125,9 @@ defmodule Mobilizon.Service.Workers.Notification do :ok else + {:error, :event_not_found} -> + {:cancel, :event_participation_not_found} + err -> Logger.debug(inspect(err)) err