mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
440 B
14 lines
440 B
# frozen_string_literal: true
|
|
|
|
class SendFormDeclinedWebhookRequestJob
|
|
include WebhookRequestJob
|
|
|
|
def perform(params = {})
|
|
perform_webhook_request(params, record_key: 'submitter_id', record_class: Submitter,
|
|
event_type: 'form.declined') do |submitter|
|
|
ActiveStorage::Current.url_options = Docuseal.default_url_options
|
|
Submitters::SerializeForWebhook.call(submitter)
|
|
end
|
|
end
|
|
end
|