mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Fix report PDF generation job params [SCI-5708]
This commit is contained in:
parent
7bc6abd9bb
commit
e4d852b9f5
1 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ class ReportsController < ApplicationController
|
||||||
format.json do
|
format.json do
|
||||||
@report.update!(pdf_file_processing: true)
|
@report.update!(pdf_file_processing: true)
|
||||||
log_activity(:generate_pdf_report)
|
log_activity(:generate_pdf_report)
|
||||||
Reports::PdfJob.perform_later(@report, current_user)
|
Reports::PdfJob.perform_later(@report.id, current_user)
|
||||||
render json: {
|
render json: {
|
||||||
message: I18n.t('projects.reports.index.generation.accepted_message')
|
message: I18n.t('projects.reports.index.generation.accepted_message')
|
||||||
}
|
}
|
||||||
|
@ -555,6 +555,6 @@ class ReportsController < ApplicationController
|
||||||
|
|
||||||
def generate_pdf_report
|
def generate_pdf_report
|
||||||
log_activity(: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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue