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.
17 lines
520 B
17 lines
520 B
# frozen_string_literal: true
|
|
|
|
class SendFormCompletedWebhookRequestJob
|
|
include WebhookRequestJob
|
|
|
|
MAX_ATTEMPTS = 12
|
|
|
|
def perform(params = {})
|
|
perform_webhook_request(params, record_key: 'submitter_id', record_class: Submitter,
|
|
event_type: 'form.completed') do |submitter|
|
|
Submissions::EnsureResultGenerated.call(submitter)
|
|
ActiveStorage::Current.url_options = Docuseal.default_url_options
|
|
Submitters::SerializeForWebhook.call(submitter)
|
|
end
|
|
end
|
|
end
|