Don't treat notification for a deleted event as an error

Just cancel the job

Closes #1180

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-11-03 09:11:12 +01:00
parent 34ecb1f3e4
commit 62dd1b85b7
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -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