fix submission result

This commit is contained in:
Alex Turchyn committed 2023-06-25 11:46:20 +03:00
1 parent 8a6430f117
commit 43b32d05cb
4 files changed
+6 -8

No files matched your search

+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