tmp fix pondelku (mozna)

This commit is contained in:
Batmanisko 2023-09-11 09:32:05 +02:00
parent bf2683182e
commit 8a67325c85
No known key found for this signature in database

View File

@ -58,7 +58,7 @@ const parseToken = (req: any) => {
* @returns index dne v týdnu * @returns index dne v týdnu
*/ */
const parseValidateFutureDayIndex = (req: any) => { const parseValidateFutureDayIndex = (req: any) => {
if (!req.body.dayIndex) { if (req.body.dayIndex == null) {
throw Error(`Nebyl předán index dne v týdnu.`); throw Error(`Nebyl předán index dne v týdnu.`);
} }
const todayDayIndex = getDayOfWeekIndex(getToday()); const todayDayIndex = getDayOfWeekIndex(getToday());