Merge pull request #10568 from colinux/fix-helpscout-limit-int
Tech (helpscout): corrige encore plus mieux le rate limiting
This commit is contained in:
commit
eb6fafa400
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module Maintenance
|
|||
|
||||
throttle_on do
|
||||
limit = Rails.cache.read(Helpscout::API::RATELIMIT_KEY)
|
||||
limit.present? && limit <= 26 # check is made after each page (of 25 elements), and we need 25 calls to delete them all
|
||||
limit.present? && limit.to_i <= 26 # check is made after each page (of 25 elements), and we need 25 calls to delete them all
|
||||
end
|
||||
|
||||
def count
|
||||
|
|
Loading…
Reference in a new issue