1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-17 18:49:15 +00:00

Make sure we return the right format for oban

This commit is contained in:
Floatingghost 2024-04-16 02:35:21 +01:00
parent 2fc25980d1
commit b7dd739de1

View file

@ -34,8 +34,11 @@ def perform(%Job{args: %{"op" => "fetch_remote", "id" => id} = args}) do
{:error, :id_mismatch} ->
{:discard, :id_mismatch}
_ ->
:error
{:error, _} = e ->
e
e ->
{:error, e}
end
end
end