Skip to content

Commit

Permalink
chore: increase recent orders to 1 month
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Sep 11, 2024
1 parent 25a5a60 commit 0bbc4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 0bbc4b3

Please sign in to comment.