about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-22 00:26:55 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-22 00:26:55 -0600
commitc32c3f70cdf4e9f113d24e2d9b875fe7052bc839 (patch)
treecb130c9dcbfc3ad5159a382e094d7aa53dfac5cc
parent5b2808d0bc1006a821613b02b584c7b0f227c8e5 (diff)
fix auto-defang....... 2!
-rw-r--r--app/workers/scheduler/defang_scheduler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/scheduler/defang_scheduler.rb b/app/workers/scheduler/defang_scheduler.rb
index d7ba3907a..ea999572d 100644
--- a/app/workers/scheduler/defang_scheduler.rb
+++ b/app/workers/scheduler/defang_scheduler.rb
@@ -5,8 +5,8 @@ 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| user.defang!
+    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')
     end