Fix additional lessons date

This commit is contained in:
Mikołaj Pich 2020-11-11 20:30:28 +01:00
parent 0f9d776039
commit c96e3c7d5e

View file

@ -570,7 +570,12 @@ router.all("/PlanZajec.mvc/Get", (req, res) => {
},
],
"Rows": rows.map(row => [row.times, ...row.lessons]),
"Additionals": require("../../data/opiekun/lekcje-dodatkowe")
"Additionals": require("../../data/opiekun/lekcje-dodatkowe").map(item => {
return {
...item,
"Header": `poniedziałek, ${converter.formatDate(addDays(requestDate, 0))}`
};
})
},
"success": true
});