From 3dc62460b00acea03d6010b08677031332399d2c Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Wed, 11 Dec 2019 19:21:47 -0600 Subject: use `set` instead of `setex` --- app/workers/scheduler/werewolf_scheduler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/workers') 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? -- cgit