mirror of
https://github.com/docusealco/docuseal
synced 2026-11-13 07:52:32 -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,8 +8,13 @@ class SendFormStartedWebhookRequestJob
|
||||
MAX_ATTEMPTS = 10
|
||||
|
||||
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 submitter
|
||||
|
||||
webhook_url = WebhookUrl.find_by(id: params['webhook_url_id'])
|
||||
|
||||
return unless webhook_url
|
||||
|
||||
attempt = params['attempt'].to_i
|
||||
|
||||
|
||||
Reference in new issue
Block a user