Fix generation of docx report preview [SCI-11227]

This commit is contained in:
Martin Artnik 2024-11-04 13:54:18 +01:00
parent 2bb695a17f
commit 53b60a6b1e

View file

@ -31,7 +31,7 @@ class PdfPreviewService
end
ActiveRecord::Base.no_touching do
attached.attach(io: File.open(preview_file), filename: "#{@blob.filename.base}.pdf")
@attached.attach(io: File.open(preview_file), filename: "#{@blob.filename.base}.pdf")
end
Rails.logger.info("Finished preparing PDF preview for file #{@blob.filename.sanitized}.")
end