From c5391a6683572ce78d7526d63c55692435673ef8 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 22 Dec 2022 00:44:39 -0800 Subject: [PATCH] Fix bug where `now` wasn't replaced --- app/controllers/api/v1/parties_controller.rb | 2 +- app/controllers/api/v1/users_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/parties_controller.rb b/app/controllers/api/v1/parties_controller.rb index fe32077..d97b96f 100644 --- a/app/controllers/api/v1/parties_controller.rb +++ b/app/controllers/api/v1/parties_controller.rb @@ -111,7 +111,7 @@ module Api {}.tap do |hash| hash[:element] = params['element'] unless params['element'].blank? hash[:raid] = params['raid'] unless params['raid'].blank? - hash[:created_at] = start_time..now unless params['recency'].blank? + hash[:created_at] = start_time..DateTime.current unless params['recency'].blank? hash[:weapons_count] = 5..13 end end diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index c2ca040..121c721 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -89,7 +89,7 @@ module Api {}.tap do |hash| hash[:element] = params['element'] unless params['element'].blank? hash[:raid] = params['raid'] unless params['raid'].blank? - hash[:created_at] = start_time..now unless params['recency'].blank? + hash[:created_at] = start_time..DateTime.current unless params['recency'].blank? end end