diff options
-rw-r--r-- | app/workers/scheduler/defang_scheduler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/scheduler/defang_scheduler.rb b/app/workers/scheduler/defang_scheduler.rb index a20242a23..d7ba3907a 100644 --- a/app/workers/scheduler/defang_scheduler.rb +++ b/app/workers/scheduler/defang_scheduler.rb @@ -5,7 +5,7 @@ class Scheduler::DefangScheduler include ServiceAccountHelper def perform - User.where(defanged: false, last_fanged_at: nil).or(User.where('last_fanged_at >= ?', 15.minutes.ago)) do + User.where(defanged: false, last_fanged_at: nil).or(User.where('last_fanged_at <= ?', 15.minutes.ago)) do |user| user.defang! next unless user&.account.present? service_dm('announcements', user.account, "You are no longer in #{user.role} mode.", footer: 'auto-defang') |