mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23:42:32 -05:00
webhook secret priority
This commit is contained in:
1 parent
8fbb8b8f6e
commit
e9034d8da7
2 files changed
+4
-4
No files matched your search
@@ -28,9 +28,9 @@ class SendFormCompletedWebhookRequestJob
|
|||||||
timestamp: Time.current,
|
timestamp: Time.current,
|
||||||
data: Submitters::SerializeForWebhook.call(submitter)
|
data: Submitters::SerializeForWebhook.call(submitter)
|
||||||
}.to_json,
|
}.to_json,
|
||||||
**webhook_url.secret.to_h,
|
|
||||||
'Content-Type' => 'application/json',
|
'Content-Type' => 'application/json',
|
||||||
'User-Agent' => USER_AGENT)
|
'User-Agent' => USER_AGENT,
|
||||||
|
**webhook_url.secret.to_h)
|
||||||
rescue Faraday::Error
|
rescue Faraday::Error
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ class SendSubmissionCompletedWebhookRequestJob
|
|||||||
timestamp: Time.current,
|
timestamp: Time.current,
|
||||||
data: Submissions::SerializeForApi.call(submission)
|
data: Submissions::SerializeForApi.call(submission)
|
||||||
}.to_json,
|
}.to_json,
|
||||||
**webhook_url.secret.to_h,
|
|
||||||
'Content-Type' => 'application/json',
|
'Content-Type' => 'application/json',
|
||||||
'User-Agent' => USER_AGENT)
|
'User-Agent' => USER_AGENT,
|
||||||
|
**webhook_url.secret.to_h)
|
||||||
rescue Faraday::Error
|
rescue Faraday::Error
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user