From 8a67325c8528e7ac73857ad9a536442174ae565a Mon Sep 17 00:00:00 2001 From: Batmanisko Date: Mon, 11 Sep 2023 09:32:05 +0200 Subject: [PATCH] tmp fix pondelku (mozna) --- server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/index.ts b/server/src/index.ts index f47bcdc..581dabb 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -58,7 +58,7 @@ const parseToken = (req: any) => { * @returns index dne v týdnu */ const parseValidateFutureDayIndex = (req: any) => { - if (!req.body.dayIndex) { + if (req.body.dayIndex == null) { throw Error(`Nebyl předán index dne v týdnu.`); } const todayDayIndex = getDayOfWeekIndex(getToday());