mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
use webhook urls instead of encrypted configs
This commit is contained in:
1 parent
f669045362
commit
84edb6dbda
50 files changed
+1350
-269
No files matched your search
@@ -25,7 +25,10 @@ class SubmitFormDeclineController < ApplicationController
|
||||
SubmitterMailer.declined_email(submitter, user).deliver_later!
|
||||
end
|
||||
|
||||
SendFormDeclinedWebhookRequestJob.perform_async('submitter_id' => submitter.id)
|
||||
submitter.account.webhook_urls.with_event('form.declined').each do |webhook_url|
|
||||
SendFormDeclinedWebhookRequestJob.perform_async({ 'submitter_id' => submitter.id,
|
||||
'webhook_url_id' => webhook_url.id })
|
||||
end
|
||||
|
||||
redirect_to submit_form_path(submitter.slug)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user