Merge pull request #10568 from colinux/fix-helpscout-limit-int

Tech (helpscout): corrige encore plus mieux le rate limiting
This commit is contained in:
Colin Darie 2024-07-01 09:14:13 +00:00 committed by GitHub
commit eb6fafa400
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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