uploads: fix exception with preprocessed uploads.
Fix exception when submitting an upload and an in-progress preprocessed upload already exists. In this case we forgot to pass the upload params when calling UploadService#delayed_start.
This commit is contained in:
@@ -2,7 +2,7 @@ class UploadServiceDelayedStartJob < ApplicationJob
|
||||
queue_as :default
|
||||
queue_with_priority(-1)
|
||||
|
||||
def perform(uploader)
|
||||
UploadService.delayed_start(uploader.id)
|
||||
def perform(params, uploader)
|
||||
UploadService.new(params).delayed_start(uploader.id)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user