importo 3.0.18 → 3.0.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6377f43dbbb4b09f3700ceb910fad844598c0197c5f35857c2cd712cf37cdd4b
4
- data.tar.gz: a22342e284e1df6b973920d4404c3641eba58ef0e47a79dd3ccf66b2db6e3b23
3
+ metadata.gz: 61764721dff70fb8c612108efe9393621b0d9e6518ba93c3f0b52336eb8e7b1f
4
+ data.tar.gz: 0bbc6215824924aaad4f69424f10804b681343128bfe179fc697f5d05392ff06
5
5
  SHA512:
6
- metadata.gz: 5fd684e69696971df33154b2e4554566ba1609869139863ff0b104dd4cad6ba322f89f0a13f2f8170c505c8befb68cc3a6460ecab88bfa98782a3b0661ce7596
7
- data.tar.gz: 1d7cd156345cf52bd9ac0dd348f9057f00baf3d84312d6068b851f4bb62631cbb1c9a75b9fc11cdc43c683500d941e99ca7816f650839cf5df37937fd85c5eae
6
+ metadata.gz: e429adde16fb37d88c4e5a758ef5893791a4a9d06240c81553ffff640e94090d7697fb539440dbc42b17ebab5b1d310779ccd2e59f09c0227cf89446fe33ed2a
7
+ data.tar.gz: cccafd086fccfe734c79200628030b4df78875c2e6e9d5ffd49cd9b4062edd644938dc39ca8b03a3358c58bde74342a3aff9fa010c3feaac21669b36df557d88
@@ -0,0 +1,9 @@
1
+ module Importo
2
+ class ImportRevertJob
3
+ include Sidekiq::Job
4
+
5
+ def perform(import_id)
6
+ RevertService.perform(import: Import.find(import_id))
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module Importo
2
+ class ImportScheduleJob
3
+ include Sidekiq::Job
4
+
5
+ def perform(import_id)
6
+ ImportService.perform(import: Import.find(import_id))
7
+ end
8
+ end
9
+ end
@@ -111,11 +111,11 @@ module Importo
111
111
  private
112
112
 
113
113
  def schedule_import
114
- ImportService.perform_later(import: self)
114
+ ImportScheduleJob.perform_in(5.seconds, id)
115
115
  end
116
116
 
117
117
  def schedule_revert
118
- RevertService.perform_later(import: self)
118
+ ImportRevertJob.perform_in(5.seconds, id)
119
119
  end
120
120
  end
121
121
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Importo
4
- VERSION = "3.0.18"
4
+ VERSION = "3.0.20"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: importo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.18
4
+ version: 3.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Meij
@@ -320,6 +320,8 @@ files:
320
320
  - app/importers/importo/import_job_callback.rb
321
321
  - app/jobs/importo/application_job.rb
322
322
  - app/jobs/importo/import_job.rb
323
+ - app/jobs/importo/import_revert_job.rb
324
+ - app/jobs/importo/import_schedule_job.rb
323
325
  - app/jobs/importo/import_scheduled_job.rb
324
326
  - app/jobs/importo/purge_import_job.rb
325
327
  - app/mailers/importo/application_mailer.rb