From 90373b7f3190e86882e764d9cf595f7345a97245 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Thu, 12 Dec 2019 04:36:05 -0600 Subject: use service account helper in janitor scheduler --- app/workers/scheduler/janitor_scheduler.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/workers/scheduler/janitor_scheduler.rb b/app/workers/scheduler/janitor_scheduler.rb index 3d0e8e77c..1fbdfd62e 100644 --- a/app/workers/scheduler/janitor_scheduler.rb +++ b/app/workers/scheduler/janitor_scheduler.rb @@ -4,6 +4,7 @@ class Scheduler::JanitorScheduler include Sidekiq::Worker include BlocklistHelper include ModerationHelper + include ServiceAccountHelper include Redisable MIN_POSTS = 6 @@ -11,7 +12,7 @@ class Scheduler::JanitorScheduler sidekiq_options unique: :until_executed def perform - @account = janitor_account + @account = find_service_account('janitor') return if @account.nil? @exclude_ids = excluded_account_ids -- cgit