Class: SpreeCmCommissioner::Stock::InventoryItemsGeneratorJob

Inherits:
ApplicationUniqueJob show all
Defined in:
app/jobs/spree_cm_commissioner/stock/inventory_items_generator_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(variant_id:) ⇒ Object



4
5
6
7
8
# File 'app/jobs/spree_cm_commissioner/stock/inventory_items_generator_job.rb', line 4

def perform(variant_id:)
  variant = Spree::Variant.find(variant_id)

  SpreeCmCommissioner::Stock::InventoryItemsGenerator.call(variant: variant)
end