Delay marking Docx report as ready till after preview is created [SCI-10037] (#7025)

This commit is contained in:
Soufiane 2024-02-05 10:18:23 +01:00 committed by GitHub
parent 1948757d15
commit e85f48d51f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,7 +155,7 @@ class ReportsController < ApplicationController
end
def status
docx = @report.docx_file.attached? ? document_preview_report_path(@report, report_type: :docx) : nil
docx = @report.docx_preview_file.attached? ? document_preview_report_path(@report, report_type: :docx) : nil
pdf = @report.pdf_file.attached? ? document_preview_report_path(@report, report_type: :pdf) : nil
render json: {