mirror of
https://github.com/docusealco/docuseal
synced 2026-11-16 00:12:32 -05:00
adjust webhooks
This commit is contained in:
1 parent
84edb6dbda
commit
2542f26d96
40 files changed
+156
-235
No files matched your search
@@ -11,12 +11,10 @@ class SendFormCompletedWebhookRequestJob
|
||||
|
||||
def perform(params = {})
|
||||
submitter = Submitter.find(params['submitter_id'])
|
||||
webhook_url = WebhookUrl.find(params['webhook_url_id'])
|
||||
|
||||
attempt = params['attempt'].to_i
|
||||
|
||||
webhook_url = submitter.account.webhook_urls.find_by(id: params['webhook_url_id'])
|
||||
|
||||
return unless webhook_url
|
||||
return if webhook_url.url.blank? || webhook_url.events.exclude?('form.completed')
|
||||
|
||||
Submissions::EnsureResultGenerated.call(submitter)
|
||||
|
||||
Reference in new issue
Block a user