diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-22 00:21:16 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-22 00:21:16 -0600 |
commit | 5b2808d0bc1006a821613b02b584c7b0f227c8e5 (patch) | |
tree | 608159b58c18c1e7d97f150086b46d9580d4efd0 /app/workers | |
parent | d90244e3871c156245505d14b92cafe7a0639684 (diff) |
fix auto-defang
Diffstat (limited to 'app/workers')
-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') |