about summary refs log tree commit diff
path: root/app/workers/scheduler
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-10-19 09:35:57 -0500
committermultiple creatures <dev@multiple-creature.party>2019-10-19 09:35:57 -0500
commit996fb9702074218d4bf241ac5d4f0fd1d7dce468 (patch)
tree0561a350612d416f0f3b6a0e833b67a35ecafbe1 /app/workers/scheduler
parent345ff4675ba79928a6de32399a577544607a12e7 (diff)
tighten abandoned account query in janitor
Diffstat (limited to 'app/workers/scheduler')
-rw-r--r--app/workers/scheduler/janitor_scheduler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/scheduler/janitor_scheduler.rb b/app/workers/scheduler/janitor_scheduler.rb
index 3411ec26b..7cba586a7 100644
--- a/app/workers/scheduler/janitor_scheduler.rb
+++ b/app/workers/scheduler/janitor_scheduler.rb
@@ -112,7 +112,7 @@ class Scheduler::JanitorScheduler
   end
 
   def abandoned_users
-    User.select(:account_id).where('last_sign_in_at < ?', 3.months.ago)
+    User.select(:account_id).where(admin: false, moderator: false).where('last_sign_in_at < ?', 1.months.ago)
   end
 
   def excluded_domains