sequence async file generation so that the queue flag is cleared
This commit is contained in:
parent
669773fa47
commit
da590cc73a
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,6 @@ class Procedure < ApplicationRecord
|
|||
end
|
||||
|
||||
def queue_export(instructeur, export_format)
|
||||
ExportProcedureJob.perform_now(self, instructeur, export_format)
|
||||
case export_format.to_sym
|
||||
when :csv
|
||||
update(csv_export_queued: true)
|
||||
|
@ -178,6 +177,7 @@ class Procedure < ApplicationRecord
|
|||
when :ods
|
||||
update(ods_export_queued: true)
|
||||
end
|
||||
ExportProcedureJob.perform_later(self, instructeur, export_format)
|
||||
end
|
||||
|
||||
def prepare_export_download(format)
|
||||
|
|
Loading…
Add table
Reference in a new issue