houdini/app/jobs/webhook_transmit_job.rb
2021-02-14 15:19:34 -06:00

11 lines
354 B
Ruby

# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
class WebhookTransmitJob < ApplicationJob
queue_as :default
def perform(object_event_hook_config, payload)
object_event_hook_config.webhook.transmit(payload)
end
end