From 2c3c49bca81444bdc2375badc0fb4c3a509dd576 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 21 Jan 2024 18:39:31 +0100 Subject: [PATCH] validation --- src/controllers/calendarController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/calendarController.ts b/src/controllers/calendarController.ts index 111db91..dc33d3f 100644 --- a/src/controllers/calendarController.ts +++ b/src/controllers/calendarController.ts @@ -243,7 +243,7 @@ export async function UnlinkGoogleCalendar(req: Request, res: Response) { // validate request - if (!password || !deleteCalendars) { + if (!password || deleteCalendars === undefined) { return res.status(400).send({ err: "invalid request" }); }