Fix return for cancelling job
This commit is contained in:
parent
d124d8645e
commit
1e0d5934d5
@ -20,7 +20,7 @@ defmodule Pleroma.Workers.RichMediaWorker do
|
|||||||
|
|
||||||
{:error, type}
|
{:error, type}
|
||||||
when type in [:invalid_metadata, :body_too_large, :content_type, :validate] ->
|
when type in [:invalid_metadata, :body_too_large, :content_type, :validate] ->
|
||||||
:cancel
|
{:cancel, type}
|
||||||
|
|
||||||
error ->
|
error ->
|
||||||
{:error, error}
|
{:error, error}
|
||||||
|
Loading…
Reference in New Issue
Block a user