add webhook urls record

This commit is contained in:
Pete Matsyburka committed 2024-07-14 22:53:33 +03:00
1 parent f10e941529
commit de52f2f5e5
8 files changed
+112 -11

No files matched your search

@@ -17,7 +17,8 @@ class WebhookSettingsController < ApplicationController
def update
submitter = current_account.submitters.where.not(completed_at: nil).order(:id).last
SendFormCompletedWebhookRequestJob.perform_async({ 'submitter_id' => submitter.id })
SendFormCompletedWebhookRequestJob.perform_async({ 'submitter_id' => submitter.id,
'encrypted_config_id' => @encrypted_config.id })
redirect_back(fallback_location: settings_webhooks_path, notice: 'Webhook request has been sent.')
end