From 996fb9702074218d4bf241ac5d4f0fd1d7dce468 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 19 Oct 2019 09:35:57 -0500 Subject: tighten abandoned account query in janitor --- app/workers/scheduler/janitor_scheduler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 -- cgit