IO-2520 Change Query Time Bound

This commit is contained in:
Allan Carr
2024-01-09 12:00:24 -08:00
parent 1305277c09
commit 3e9279d89a

View File

@@ -64,9 +64,9 @@ exports.default = async (req, res) => {
{
bodyshopid: bodyshop.id,
start: start
? moment(start).startOf("day")
: moment().subtract(5, "days").startOf("day"),
...(end && { end: moment(end).endOf("day") }),
? moment(start).startOf("hours")
: moment().subtract(2, "hours").startOf("hour"),
...(end && { end: moment(end).endOf("hours") }),
}
);