mirror of
https://github.com/docusealco/docuseal
synced 2026-11-15 08:02:33 -05:00
skip webhook not found
This commit is contained in:
1 parent
e92fc0d3e1
commit
cba2d02990
12 files changed
+79
-24
No files matched your search
@@ -8,10 +8,13 @@ class SendTestWebhookRequestJob
|
||||
USER_AGENT = 'DocuSeal.com Webhook'
|
||||
|
||||
def perform(params = {})
|
||||
submitter = Submitter.find(params['submitter_id'])
|
||||
webhook_url = WebhookUrl.find(params['webhook_url_id'])
|
||||
submitter = Submitter.find_by(id: params['submitter_id'])
|
||||
|
||||
return unless webhook_url && submitter
|
||||
return unless submitter
|
||||
|
||||
webhook_url = WebhookUrl.find_by(id: params['webhook_url_id'])
|
||||
|
||||
return unless webhook_url
|
||||
|
||||
Faraday.post(webhook_url.url,
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user