chore: Update dependencies to the latest versions (#5033)

This commit is contained in:
Sojan Jose
2022-07-15 04:51:59 +02:00
committed by GitHub
parent ea1a27c7d4
commit 4187428729
122 changed files with 546 additions and 526 deletions

View File

@@ -1,11 +1,11 @@
class GlobalConfigService
def self.load(config_key, default_value)
config = ENV[config_key] || GlobalConfig.get(config_key)[config_key]
config = ENV.fetch(config_key) { GlobalConfig.get(config_key)[config_key] }
return config if config.present?
# To support migrating existing instance relying on env variables
# TODO: deprecate this later down the line
config_value = ENV[config_key] || default_value
config_value = ENV.fetch(config_key) { default_value }
return if config_value.blank?