about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-22 00:21:16 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-22 00:21:16 -0600
commit5b2808d0bc1006a821613b02b584c7b0f227c8e5 (patch)
tree608159b58c18c1e7d97f150086b46d9580d4efd0 /app/workers
parentd90244e3871c156245505d14b92cafe7a0639684 (diff)
fix auto-defang
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/scheduler/defang_scheduler.rb2
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')