Merge pull request #3352 from okriuchykhin/ok_SCI_5763

Fix reports docx job arguments [SCI-5763]
This commit is contained in:
Miha Mencin 2021-05-26 16:26:54 +02:00 committed by GitHub
commit 90b02f9d4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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')
}