skip webhook not found

This commit is contained in:
Pete Matsyburka
2025-12-03 13:20:52 +02:00
parent e92fc0d3e1
commit cba2d02990
12 changed files with 79 additions and 24 deletions
+6 -3
View File
@@ -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,
{