adjust configs loading

This commit is contained in:
DocuSeal committed 2023-10-28 00:42:33 +03:00
1 parent 57aef5f5e5
commit 65f491325e
2 files changed
+5 -6

No files matched your search

@@ -12,7 +12,7 @@ class VerifyPdfSignatureController < ApplicationController
cert_data = if Docuseal.multitenant?
Docuseal::CERTS
else
EncryptedConfig.find_by(account: current_account, key: EncryptedConfig::ESIGN_CERTS_KEY)&.value || {}
EncryptedConfig.find_by(key: EncryptedConfig::ESIGN_CERTS_KEY)&.value || {}
end
default_pkcs = GenerateCertificate.load_pkcs(cert_data)