about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers')
-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