mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update end date on delivery report to ensure all of todays orders are included
This commit is contained in:
@@ -138,7 +138,7 @@ module OpenFoodNetwork
|
||||
def sanitize_params(params)
|
||||
params[:q] ||= {}
|
||||
params[:q][:completed_at_gt] ||= Time.zone.today - DEFAULT_DATE_INTERVAL
|
||||
params[:q][:completed_at_lt] ||= Time.zone.today
|
||||
params[:q][:completed_at_lt] ||= Time.zone.today + 1.day
|
||||
params
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user