fix preview preload

This commit is contained in:
Pete Matsyburka
2024-09-13 10:55:45 +03:00
committed by Oleksandr Turchyn
parent bfa41ac35f
commit 99ad6e36ac
+1 -1
View File
@@ -18,7 +18,7 @@ module Api
preview_image_attachments =
ActiveStorage::Attachment.joins(:blob)
.where(blob: { filename: '0.png' })
.where(blob: { filename: ['0.png', '0.jpg'] })
.where(record_id: schema_documents.map(&:id),
record_type: 'ActiveStorage::Attachment',
name: :preview_images)