From c3b6f263b399bfc9275c905b6eb8c8cee0c17412 Mon Sep 17 00:00:00 2001 From: Jeremy Kescher Date: Mon, 27 Jun 2022 00:28:39 +0200 Subject: [PATCH] Fix "undefined method `ago` for 86400:Integer" --- app/workers/scheduler/ip_cleanup_scheduler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/scheduler/ip_cleanup_scheduler.rb b/app/workers/scheduler/ip_cleanup_scheduler.rb index 5a4a7bc2fe..7a7b787dd7 100644 --- a/app/workers/scheduler/ip_cleanup_scheduler.rb +++ b/app/workers/scheduler/ip_cleanup_scheduler.rb @@ -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