From: Tom Hughes Date: Wed, 3 Apr 2019 20:53:16 +0000 (+0100) Subject: Fix queuing of trace imports for API uploads X-Git-Tag: live~3156 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/f68cee0f4e01627134f0f519d7b93be2c6d21d40 Fix queuing of trace imports for API uploads Fixes #2200 --- diff --git a/app/controllers/api/traces_controller.rb b/app/controllers/api/traces_controller.rb index 5e95892e1..49db41076 100644 --- a/app/controllers/api/traces_controller.rb +++ b/app/controllers/api/traces_controller.rb @@ -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