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, {