From a2032553d936654adbb960a33367102aeee1da28 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Thu, 3 Mar 2022 12:39:18 -0800 Subject: [PATCH] IO-1746 Smart Scheduling Dates to 10. --- server/scheduling/scheduling-job.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/scheduling/scheduling-job.js b/server/scheduling/scheduling-job.js index 95091e8e7..a314022c9 100644 --- a/server/scheduling/scheduling-job.js +++ b/server/scheduling/scheduling-job.js @@ -201,7 +201,7 @@ exports.job = async (req, res) => { load[startIsoFormat] = { blocked: true }; } }); - // //Propose the first 5 dates where we are below target. + // //Propose the first 10 dates where we are below target. const possibleDates = []; delete load.productionTotal; @@ -223,10 +223,10 @@ exports.job = async (req, res) => { possibleDates.push(new Date(loadKey).toISOString().substr(0, 10)); }); - if (possibleDates.length < 6) { + if (possibleDates.length < 11) { res.json(possibleDates); } else { - res.json(possibleDates.slice(0, 5)); + res.json(possibleDates.slice(0, 10)); } } catch (error) { logger.log("smart-scheduling-error", "ERROR", req.user.email, jobId, {