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.
13 lines
379 B
13 lines
379 B
# frozen_string_literal: true
|
|
|
|
class SendSubmissionCreatedWebhookRequestJob
|
|
include WebhookRequestJob
|
|
|
|
def perform(params = {})
|
|
perform_webhook_request(params, record_key: 'submission_id', record_class: Submission,
|
|
event_type: 'submission.created') do |submission|
|
|
Submissions::SerializeForApi.call(submission)
|
|
end
|
|
end
|
|
end
|