mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
add webhook urls record
This commit is contained in:
1 parent
f10e941529
commit
de52f2f5e5
8 files changed
+112
-11
No files matched your search
+5
-1
@@ -79,13 +79,17 @@ module Accounts
|
||||
end
|
||||
|
||||
def load_webhook_url(account)
|
||||
load_webhook_config(account)&.value.presence
|
||||
end
|
||||
|
||||
def load_webhook_config(account)
|
||||
configs = account.encrypted_configs.find_by(key: EncryptedConfig::WEBHOOK_URL_KEY)
|
||||
|
||||
if !configs && !Docuseal.multitenant? && !account.testing?
|
||||
configs = Account.order(:id).first.encrypted_configs.find_by(key: EncryptedConfig::WEBHOOK_URL_KEY)
|
||||
end
|
||||
|
||||
configs&.value.presence
|
||||
configs
|
||||
end
|
||||
|
||||
def load_webhook_preferences(account)
|
||||
|
||||
Reference in new issue
Block a user