Bugfix: Invalid argument expiry in global config

references: #976
This commit is contained in:
Sojan 2020-06-22 12:01:26 +05:30
parent 991648edcf
commit d4214cd78f
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
shared: &shared
version: '1.5.2'
version: '1.5.3'
development:
<<: *shared

View file

@ -31,7 +31,7 @@ class GlobalConfig
if cached_value.blank?
value_from_db = db_fallback(config_key)
cached_value = { value: value_from_db }.to_json
$alfred.set(cache_key, cached_value, { expiry: DEFAULT_EXPIRY })
$alfred.set(cache_key, cached_value, { ex: DEFAULT_EXPIRY })
end
JSON.parse(cached_value)['value']