Class: OmniEvent::ProcessWebhookJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/omni_event/process_webhook_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(event_id) ⇒ Object



5
6
7
8
# File 'app/jobs/omni_event/process_webhook_job.rb', line 5

def perform(event_id)
  event = OmniEvent::WebhookEvent.find(event_id)
  OmniEvent::ProcessDispatcher.call(event)
end