X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/33d292e9810faeb0a038d6a3df3881411183e28c..f0764d3:/app/models/trace.rb?ds=sidebyside diff --git a/app/models/trace.rb b/app/models/trace.rb index be5d0a631..1e8f25a83 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -268,7 +268,7 @@ class Trace < ApplicationRecord end def schedule_import - TraceImporterJob.perform_later(self) + TraceImporterJob.new(self).enqueue(:priority => user.traces.where(:inserted => false).count) end def schedule_destruction