use png for previews

This commit is contained in:
Pete Matsyburka
2024-09-11 16:46:33 +03:00
committed by Oleksandr Turchyn
parent 26ae5f1d80
commit bc4414a368
4 changed files with 23 additions and 16 deletions
+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)