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