Class: SpreeCmCommissioner::TelegramAlerts::OrderIntegrityCheckJob

Inherits:
ApplicationUniqueJob show all
Defined in:
app/jobs/spree_cm_commissioner/telegram_alerts/order_integrity_check_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(order_id:) ⇒ Object



9
10
11
12
13
14
# File 'app/jobs/spree_cm_commissioner/telegram_alerts/order_integrity_check_job.rb', line 9

def perform(order_id:)
  order = Spree::Order.find_by(id: order_id)
  return unless order

  SpreeCmCommissioner::TelegramAlerts::OrderIntegrityChecksRunner.call(order: order)
end