Class: SpreeCmCommissioner::EventCreationTelegramAlertSenderJob

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

Instance Method Summary collapse

Instance Method Details

#perform(options = {}) ⇒ Object



5
6
7
8
# File 'app/jobs/spree_cm_commissioner/event_creation_telegram_alert_sender_job.rb', line 5

def perform(options = {})
  event = Spree::Taxon.find(options[:event_id])
  SpreeCmCommissioner::TelegramAlerts::EventCreation.call(event: event)
end