use png for previews

This commit is contained in:
Pete Matsyburka authored and Oleksandr Turchyn committed 2024-09-16 12:11:20 +03:00
1 parent 26ae5f1d80
commit bc4414a368
4 files changed
+23 -16

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ module Api
preview_image_attachments =
ActiveStorage::Attachment.joins(:blob)
.where(blob: { filename: '0.jpg' })
.where(blob: { filename: '0.png' })
.where(record_id: schema_documents.map(&:id),
record_type: 'ActiveStorage::Attachment',
name: :preview_images)