mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
fix preview preload
This commit is contained in:
1 parent
bfa41ac35f
commit
99ad6e36ac
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user