use png for previews
This commit is contained in:
committed by
Oleksandr Turchyn
parent
26ae5f1d80
commit
bc4414a368
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user