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
|
||||
@@lookup_at = nil # rubocop:disable Style/ClassVars
|
||||
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
|
||||
@@lookup_timeout = 2.minutes # rubocop:disable Style/ClassVars
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue