From 8e794070d233dd0355b8f165e81f9ec6917ef3d7 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 6 Apr 2017 13:45:59 +0800 Subject: [PATCH] Fix incorrect method name. --- app/jobs/onceoff/remove_old_auto_close_jobs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/onceoff/remove_old_auto_close_jobs.rb b/app/jobs/onceoff/remove_old_auto_close_jobs.rb index 17dbfc9284f..756cb26d048 100644 --- a/app/jobs/onceoff/remove_old_auto_close_jobs.rb +++ b/app/jobs/onceoff/remove_old_auto_close_jobs.rb @@ -1,7 +1,7 @@ module Jobs class RemoveOldAutoCloseJobs < Jobs::Onceoff def execute_onceoff(args) - Jobs.cancel_scheduled_for(:close_topic) + Jobs.cancel_scheduled_job(:close_topic) # No need to enqueue new jobs since we have a scheduled job that will # automatically enqueue the new jobs.