Update end date on delivery report to ensure all of todays orders are included

This commit is contained in:
lin-d-hop
2019-10-29 19:47:38 +00:00
parent 3e7bd7dc19
commit c477f8c230

View File

@@ -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