Merge pull request #6409 from okriuchykhin/ok_SCI_9461_v2

Fix file preview presence check in export all job [SCI-9461]
This commit is contained in:
Alex Kriuchykhin 2023-10-10 16:52:46 +02:00 committed by GitHub
commit dfe3a5c54b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,7 @@ class TeamZipExportJob < ZipExportJob
def prepare_preview(asset)
if asset.previewable? && !asset.list?
preview = asset.inline? ? asset.large_preview : asset.medium_preview
return unless preview.processed?
return unless preview.image.attached?
begin
file_name = preview.image.filename.to_s