tmp fix pondelku (mozna)
This commit is contained in:
parent
bf2683182e
commit
8a67325c85
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user