Fix reports docx job arguments [SCI-5763]

This commit is contained in:
Oleksii Kriuchykhin 2021-05-26 14:34:58 +02:00
parent 30a116fc83
commit 7a5c7e0526

View file

@ -206,7 +206,7 @@ class ReportsController < ApplicationController
format.json do
@report.docx_processing!
log_activity(:generate_docx_report)
Reports::DocxJob.perform_later(@report, current_user, root_url)
Reports::DocxJob.perform_later(@report.id, current_user, root_url)
render json: {
message: I18n.t('projects.reports.index.generation.accepted_message')
}