refresh webhook status

This commit is contained in:
Pete Matsyburka
2025-07-05 10:27:35 +03:00
parent 988a5361a6
commit 4615e3e48f
10 changed files with 139 additions and 90 deletions
@@ -53,6 +53,8 @@ class WebhookSettingsController < ApplicationController
def resend
submitter = current_account.submitters.where.not(completed_at: nil).order(:id).last
authorize!(:read, submitter)
if submitter.blank? || @webhook_url.blank?
return redirect_back(fallback_location: settings_webhooks_path,
alert: I18n.t('unable_to_resend_webhook_request'))