Class: VerifyBactracsSyncWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/verify_bactracs_sync_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(shipment_id) ⇒ Object



8
9
10
11
# File 'app/workers/verify_bactracs_sync_worker.rb', line 8

def perform(shipment_id)
  shipment = Spree::Shipment.find_by!(id: shipment_id)
  shipment.verify_bactracs_sync!
end