Skip to content

Commit

Permalink
Merge pull request #206 from ZeusWPI/recent
Browse files Browse the repository at this point in the history
chore: increase recent orders to 1 month
  • Loading branch information
Topvennie authored Sep 12, 2024
2 parents 25a5a60 + 0bbc4b3 commit 83b888e
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 83b888e

Please sign in to comment.