diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-11 19:21:47 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-11 19:21:47 -0600 |
commit | 3dc62460b00acea03d6010b08677031332399d2c (patch) | |
tree | bb869645b2f5bdfb5f4cba33a0134cb7337bffb7 | |
parent | 302f532440d0bfad1784d9b696e099af9d5a3246 (diff) |
use `set` instead of `setex`
-rw-r--r-- | app/workers/scheduler/werewolf_scheduler.rb | 2 |
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? |