CS fix
This commit is contained in:
parent
16d5950adc
commit
7de0d48c9f
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ router.all("/ListaUczniow", (req, res) => {
|
||||||
semesterEnd = new Date(currDate.getFullYear(), 7, 31);
|
semesterEnd = new Date(currDate.getFullYear(), 7, 31);
|
||||||
} else {
|
} else {
|
||||||
semesterStart = new Date(currDate.getFullYear(), 8, 1);
|
semesterStart = new Date(currDate.getFullYear(), 8, 1);
|
||||||
semesterEnd = new Date(currDate.getFullYear() + 1, 0, 30)
|
semesterEnd = new Date(currDate.getFullYear() + 1, 0, 30);
|
||||||
}
|
}
|
||||||
|
|
||||||
res.json(api.createResponse(require("../../../data/api/ListaUczniow").map(item => {
|
res.json(api.createResponse(require("../../../data/api/ListaUczniow").map(item => {
|
||||||
|
@ -51,7 +51,7 @@ router.all("/ListaUczniow", (req, res) => {
|
||||||
"OkresDataDo": getUnixTime(semesterEnd),
|
"OkresDataDo": getUnixTime(semesterEnd),
|
||||||
"OkresDataOdTekst": format(semesterStart, "yyyy-MM-dd"),
|
"OkresDataOdTekst": format(semesterStart, "yyyy-MM-dd"),
|
||||||
"OkresDataDoTekst": format(semesterEnd, "yyyy-MM-dd")
|
"OkresDataDoTekst": format(semesterEnd, "yyyy-MM-dd")
|
||||||
}
|
};
|
||||||
})));
|
})));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue