mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
fix timeserver config loading
This commit is contained in:
1 parent
5fd018df46
commit
541b025ad0
1 file changed
+8
-1
+8
-1
@@ -75,7 +75,14 @@ module Accounts
|
||||
if Docuseal.multitenant?
|
||||
Docuseal::TIMESERVER_URL
|
||||
else
|
||||
EncryptedConfig.find_by(account:, key: EncryptedConfig::TIMESTAMP_SERVER_URL_KEY)&.value
|
||||
url = EncryptedConfig.find_by(account:, key: EncryptedConfig::TIMESTAMP_SERVER_URL_KEY)&.value
|
||||
|
||||
unless Docuseal.multitenant?
|
||||
url ||=
|
||||
Account.order(:id).first.encrypted_configs.find_by(key: EncryptedConfig::TIMESTAMP_SERVER_URL_KEY)&.value
|
||||
end
|
||||
|
||||
url
|
||||
end.presence
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user