about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-11 19:21:47 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-11 19:21:47 -0600
commit3dc62460b00acea03d6010b08677031332399d2c (patch)
treebb869645b2f5bdfb5f4cba33a0134cb7337bffb7 /app/workers
parent302f532440d0bfad1784d9b696e099af9d5a3246 (diff)
use `set` instead of `setex`
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/scheduler/werewolf_scheduler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/scheduler/werewolf_scheduler.rb b/app/workers/scheduler/werewolf_scheduler.rb
index 1cb4c9c70..6495ae5d3 100644
--- a/app/workers/scheduler/werewolf_scheduler.rb
+++ b/app/workers/scheduler/werewolf_scheduler.rb
@@ -17,7 +17,7 @@ class Scheduler::WerewolfScheduler
 
     return unless moon_fraction >= 0.998
 
-    redis.setex('werewolf-status', 1.day, 1)
+    redis.set('werewolf-status', 1, ex: 1.day)
 
     announcer = find_announcer_acct
     return if announcer.nil?