fix submission result

This commit is contained in:
Alex Turchyn
2023-06-25 11:35:23 +03:00
parent 8a6430f117
commit 43b32d05cb
4 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module Templates
def call(attachment)
if attachment.content_type == PDF_CONTENT_TYPE
generate_pdf_preview_images(attachment)
elsif attachment.content_type.starts_with?('image/')
elsif attachment.image?
generate_preview_image(attachment)
end