about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/workers/scheduler/janitor_scheduler.rb3
1 files changed, 2 insertions, 1 deletions
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