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
@@ -130,7 +130,7 @@ describe 'Templates API', type: :request do
attachment = template.schema_documents.preload(:blob).find { |e| e.uuid == template_attachment_uuid }
first_page_blob =
ActiveStorage::Attachment.joins(:blob)
.where(blob: { filename: '0.jpg' })
.where(blob: { filename: '0.png' })
.where(record_id: template.schema_documents.map(&:id),
record_type: 'ActiveStorage::Attachment',
name: :preview_images)