Sha256: 3ca0ccfc18420384fa06189b771fc4b25892268e4c56d6586a16f79d7bf78bd3
Contents?: true
Size: 453 Bytes
Versions: 2
Compression:
Stored size: 453 Bytes
Contents
module Workarea module Yotpo class SaveOrder include Sidekiq::Worker include Sidekiq::CallbacksWorker sidekiq_options( enqueue_on: { Workarea::Order => [:place] }, unique: :until_executing ) def perform(id) order = Workarea::Order.find(id) yotpo_order = Workarea::Yotpo::Order.new(order.id) Workarea::Yotpo.gateway.create_order(yotpo_order.to_h) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-yotpo-1.0.1 | app/workers/workarea/yotpo/save_order.rb |
workarea-yotpo-1.0.0 | app/workers/workarea/yotpo/save_order.rb |