Fix return for cancelling job
This commit is contained in:
parent
d124d8645e
commit
1e0d5934d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue