Explicit conversion to seconds.
This commit is contained in:
parent
2b364f71c1
commit
c58546285a
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class Setting < ApplicationModel
|
||||||
@@change_id = nil # rubocop:disable Style/ClassVars
|
@@change_id = nil # rubocop:disable Style/ClassVars
|
||||||
@@lookup_at = nil # rubocop:disable Style/ClassVars
|
@@lookup_at = nil # rubocop:disable Style/ClassVars
|
||||||
if ENV['ZAMMAD_SETTING_TTL']
|
if ENV['ZAMMAD_SETTING_TTL']
|
||||||
@@lookup_timeout = ENV['ZAMMAD_SETTING_TTL'].to_i # rubocop:disable Style/ClassVars
|
@@lookup_timeout = ENV['ZAMMAD_SETTING_TTL'].to_i.seconds # rubocop:disable Style/ClassVars
|
||||||
else
|
else
|
||||||
@@lookup_timeout = 2.minutes # rubocop:disable Style/ClassVars
|
@@lookup_timeout = 2.minutes # rubocop:disable Style/ClassVars
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue