From 7a5c7e0526bea84179f020d93cf53747accabc8e Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Wed, 26 May 2021 14:34:58 +0200 Subject: [PATCH] Fix reports docx job arguments [SCI-5763] --- app/controllers/reports_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index d58ee8120..99e83edf7 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -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') }