Add response for Usprawiedliwienia.mvc/Post

This commit is contained in:
Kacper Ziubryniewicz 2019-04-03 18:50:23 +02:00
parent f719028ca4
commit dbb73fa549

View file

@ -492,7 +492,7 @@ router.all("/PlanZajec.mvc/Get", (req, res) => {
item.forEach(lesson => {
const gapSize = differenceInDays(lesson.date, prevDay) - 1;
for (let i = 0; i < gapSize; i++) {
row.lessons.push('');
row.lessons.push('');
}
let cell = '';
if (lesson.oldTeacher) {
@ -521,7 +521,7 @@ router.all("/PlanZajec.mvc/Get", (req, res) => {
});
const gapSize = differenceInDays(latestDay, prevDay);
for (let i = 0; i < gapSize; i++) {
row.lessons.push('');
row.lessons.push('');
}
return row;
@ -761,7 +761,9 @@ router.all("/Uczen.mvc/Get", (req, res) => {
router.all("/Usprawiedliwienia.mvc/Post", (req, res) => {
res.json({
"data": {},
"data": {
"success": true
},
"success": true
});
});