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(options = {}) ⇒ Object



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

def perform(options = {})
  customer_notification = SpreeCmCommissioner::CustomerNotification.find(options[:customer_notification_id])
  SpreeCmCommissioner::CustomerNotificationSender.call(customer_notification: customer_notification, user_ids: options[:user_ids])
end