X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e59f1b610817ad8442bc639d479cebe0a851c05a..581eca3bbe3f2e8a657d5f72afe6cbe261d4d8bf:/app/controllers/traces_controller.rb diff --git a/app/controllers/traces_controller.rb b/app/controllers/traces_controller.rb index d06c05b20..2e4997877 100644 --- a/app/controllers/traces_controller.rb +++ b/app/controllers/traces_controller.rb @@ -127,7 +127,7 @@ class TracesController < ApplicationController flash[:notice] = t ".trace_uploaded" flash[:warning] = t ".traces_waiting", :count => current_user.traces.where(:inserted => false).count if current_user.traces.where(:inserted => false).count > 4 - TraceImporterJob.perform_later(@trace) + TraceImporterJob.perform_later(@trace) if TRACE_USE_JOB_QUEUE redirect_to :action => :index, :display_name => current_user.display_name else flash[:error] = t("traces.create.upload_failed") if @trace.valid? @@ -211,7 +211,7 @@ class TracesController < ApplicationController trace.visible = false trace.save flash[:notice] = t ".scheduled_for_deletion" - TraceDestroyerJob.perform_later(trace) + TraceDestroyerJob.perform_later(trace) if TRACE_USE_JOB_QUEUE redirect_to :action => :index, :display_name => trace.user.display_name end rescue ActiveRecord::RecordNotFound