From f68cee0f4e01627134f0f519d7b93be2c6d21d40 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 3 Apr 2019 21:53:16 +0100 Subject: [PATCH] Fix queuing of trace imports for API uploads Fixes #2200 --- app/controllers/api/traces_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2