mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 19:48:18 +08:00
Merge pull request #3298 from okriuchykhin/ok_SCI_5708
Fix report PDF generation job params [SCI-5708]
This commit is contained in:
commit
ac97f38247
1 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ class ReportsController < ApplicationController
|
|||
format.json do
|
||||
@report.update!(pdf_file_processing: true)
|
||||
log_activity(:generate_pdf_report)
|
||||
Reports::PdfJob.perform_later(@report, current_user)
|
||||
Reports::PdfJob.perform_later(@report.id, current_user)
|
||||
render json: {
|
||||
message: I18n.t('projects.reports.index.generation.accepted_message')
|
||||
}
|
||||
|
@ -555,6 +555,6 @@ class ReportsController < ApplicationController
|
|||
|
||||
def generate_pdf_report
|
||||
log_activity(:generate_pdf_report)
|
||||
Reports::PdfJob.perform_later(@report, current_user) if @report.persisted?
|
||||
Reports::PdfJob.perform_later(@report.id, current_user) if @report.persisted?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue