From 515b616d30dfd974d18611a01f843f284f2acb51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 25 Nov 2014 18:45:45 +0100 Subject: [PATCH] ooops. forgot the args :fired: --- app/jobs/scheduled/clean_up_unmatched_emails.rb | 2 +- app/jobs/scheduled/clean_up_unmatched_ips.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/scheduled/clean_up_unmatched_emails.rb b/app/jobs/scheduled/clean_up_unmatched_emails.rb index 47cb0d4ba..6ce62f3f2 100644 --- a/app/jobs/scheduled/clean_up_unmatched_emails.rb +++ b/app/jobs/scheduled/clean_up_unmatched_emails.rb @@ -3,7 +3,7 @@ module Jobs class CleanUpUnmatchedEmails < Jobs::Scheduled every 1.day - def execute + def execute(args) last_match_threshold = SiteSetting.max_age_unmatched_emails.days.ago ScreenedEmail.where(action_type: ScreenedEmail.actions[:block]) diff --git a/app/jobs/scheduled/clean_up_unmatched_ips.rb b/app/jobs/scheduled/clean_up_unmatched_ips.rb index 08de1547c..8759274af 100644 --- a/app/jobs/scheduled/clean_up_unmatched_ips.rb +++ b/app/jobs/scheduled/clean_up_unmatched_ips.rb @@ -3,7 +3,7 @@ module Jobs class CleanUpUnmatchedIPs < Jobs::Scheduled every 1.day - def execute + def execute(args) last_match_threshold = SiteSetting.max_age_unmatched_ips.days.ago ScreenedIpAddress.where(action_type: ScreenedIpAddress.actions[:block])