about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-12 04:36:05 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-12 04:36:05 -0600
commit90373b7f3190e86882e764d9cf595f7345a97245 (patch)
treef98583b690b56ce6cfa4412fce7a3fc8874572ef /app/workers
parent114fc3cdd01e7932776a5fd4601451c821aef11d (diff)
use service account helper in janitor scheduler
Diffstat (limited to 'app/workers')
-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