Class: SpreeCmCommissioner::CustomerNotificationSenderJob

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

Instance Method Summary collapse

Instance Method Details

#perform(customer_notification_id, user_ids = nil) ⇒ Object



3
4
5
6
# File 'app/jobs/spree_cm_commissioner/customer_notification_sender_job.rb', line 3

def perform(customer_notification_id, user_ids = nil)
  customer_notification = SpreeCmCommissioner::CustomerNotification.find(customer_notification_id)
  SpreeCmCommissioner::CustomerNotificationSender.call(customer_notification: customer_notification, user_ids: user_ids)
end