diff --git a/app/controllers/api/templates_controller.rb b/app/controllers/api/templates_controller.rb index b7680a90..14d45862 100644 --- a/app/controllers/api/templates_controller.rb +++ b/app/controllers/api/templates_controller.rb @@ -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)