diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-10-19 09:35:57 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-10-19 09:35:57 -0500 |
commit | 996fb9702074218d4bf241ac5d4f0fd1d7dce468 (patch) | |
tree | 0561a350612d416f0f3b6a0e833b67a35ecafbe1 /app/workers/scheduler | |
parent | 345ff4675ba79928a6de32399a577544607a12e7 (diff) |
tighten abandoned account query in janitor
Diffstat (limited to 'app/workers/scheduler')
-rw-r--r-- | app/workers/scheduler/janitor_scheduler.rb | 2 |
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 |