use webhook urls instead of encrypted configs

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2024-11-02 22:12:41 +02:00
1 parent f669045362
commit 84edb6dbda
50 files changed
+1350 -269

No files matched your search

@@ -4,9 +4,8 @@ class TestingApiSettingsController < ApplicationController
def index
authorize!(:manage, current_user.access_token)
@webhook_config =
current_account.encrypted_configs.find_or_initialize_by(key: EncryptedConfig::WEBHOOK_URL_KEY)
@webhook_url = current_account.webhook_urls.first_or_initialize
authorize!(:manage, @webhook_config)
authorize!(:manage, @webhook_url)
end
end