Chatwoot/app/jobs/webhook_job.rb

8 lines
138 B
Ruby
Raw Permalink Normal View History

2020-02-14 17:49:17 +00:00
class WebhookJob < ApplicationJob
queue_as :webhooks
def perform(url, payload)
Webhooks::Trigger.execute(url, payload)
end
end