]> git.openstreetmap.org Git - rails.git/commitdiff
Fix queuing of trace imports for API uploads
authorTom Hughes <tom@compton.nu>
Wed, 3 Apr 2019 20:53:16 +0000 (21:53 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 3 Apr 2019 20:53:16 +0000 (21:53 +0100)
Fixes #2200

app/controllers/api/traces_controller.rb

index 5e95892e1b01924c30d219a421b0c7677a9452a0..49db41076661cfc5667a116f36e44ef2fb7c01e5 100644 (file)
@@ -85,7 +85,7 @@ module Api
         trace = do_create(params[:file], tags, description, visibility)
 
         if trace.id
-          TraceImporterJob.perform_later(@trace) if Settings.trace_use_job_queue
+          TraceImporterJob.perform_later(trace) if Settings.trace_use_job_queue
           render :plain => trace.id.to_s
         elsif trace.valid?
           head :internal_server_error