adjust completed webhook sending

This commit is contained in:
DocuSeal
2023-11-01 13:11:42 +02:00
parent 7444bb8b68
commit dbf1fa37c5
2 changed files with 13 additions and 10 deletions
+6 -2
View File
@@ -47,9 +47,13 @@ module Accounts
end
def load_webhook_configs(account)
EncryptedConfig.find_by(key: EncryptedConfig::WEBHOOK_URL_KEY) unless Docuseal.multitenant?
configs = account.encrypted_configs.find_by(key: EncryptedConfig::WEBHOOK_URL_KEY)
account.encrypted_configs.find_by(key: EncryptedConfig::WEBHOOK_URL_KEY)
unless Docuseal.multitenant?
configs ||= Account.order(:id).first.encrypted_configs.find_by(key: EncryptedConfig::WEBHOOK_URL_KEY)
end
configs
end
def load_signing_pkcs(account)