fix(helpscout): don't create conversation with an empty attachment
This commit is contained in:
parent
1b188f65b0
commit
84ae13eb6b
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ class HelpscoutCreateConversationJob < ApplicationJob
|
|||
|
||||
def safe_blob
|
||||
return if !contact_form.piece_jointe.virus_scanner&.safe?
|
||||
return if contact_form.piece_jointe.byte_size.zero? # HS don't support empty attachment
|
||||
|
||||
contact_form.piece_jointe
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue