mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-13 04:36:00 +08:00
Fix generation of docx report preview [SCI-11227]
This commit is contained in:
parent
2bb695a17f
commit
53b60a6b1e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue