From 0bbc4b375c6085b3416572308a99472ffdf390a3 Mon Sep 17 00:00:00 2001 From: Topvennie Date: Thu, 12 Sep 2024 01:57:42 +0200 Subject: [PATCH] chore: increase recent orders to 1 month --- app/models/order.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/order.rb b/app/models/order.rb index a6e5fe9..ba25781 100644 --- a/app/models/order.rb +++ b/app/models/order.rb @@ -34,7 +34,7 @@ class Order < ApplicationRecord scope :pending, -> { where(created_at: Rails.application.config.call_api_after.ago..) } scope :final, -> { where(created_at: ..Rails.application.config.call_api_after.ago) } - scope :recent, -> { where(created_at: 2.weeks.ago..Time.zone.now) } + scope :recent, -> { where(created_at: 1.month.ago..Time.zone.now) } def to_sentence order_items.map do |oi|