Fix "undefined method ago for 86400:Integer"

This commit is contained in:
Jeremy Kescher 2022-06-27 00:28:39 +02:00
parent 1afaba9639
commit c3b6f263b3
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940

View file

@ -3,7 +3,7 @@
class Scheduler::IpCleanupScheduler
include Sidekiq::Worker
IP_RETENTION_PERIOD = ENV.fetch('IP_RETENTION_PERIOD', 1.year).to_i.freeze
IP_RETENTION_PERIOD = ENV.fetch('IP_RETENTION_PERIOD', 1.year).to_i.seconds.freeze
sidekiq_options retry: 0