fix(image processing): handle case of blob without attachments
This commit is contained in:
parent
69e1b1be41
commit
e6845cd94d
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ module AttachmentImageProcessorConcern
|
||||||
|
|
||||||
def process_image
|
def process_image
|
||||||
return if blob.nil?
|
return if blob.nil?
|
||||||
return if blob.attachments.size > 1
|
return if blob.attachments.size != 1
|
||||||
return if blob.attachments.last.record_type == "Export"
|
return if blob.attachments.last.record_type == "Export"
|
||||||
|
|
||||||
ImageProcessorJob.perform_later(blob)
|
ImageProcessorJob.perform_later(blob)
|
||||||
|
|
Loading…
Reference in a new issue