From b5b480f7e21df88979b543706e16e0d163114ca3 Mon Sep 17 00:00:00 2001 From: Malte Delfs Date: Sat, 26 Jun 2021 19:48:24 +0200 Subject: [PATCH] hotfix for booking --- pages/api/book/[user].ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/api/book/[user].ts b/pages/api/book/[user].ts index 1140a653a1..c6d41e0711 100644 --- a/pages/api/book/[user].ts +++ b/pages/api/book/[user].ts @@ -169,7 +169,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) }, }); - const isAvailableToBeBooked = isAvailable(commonAvailability, req.body.start, selectedEventType.length); + // TODO isAvailable was throwing an error + const isAvailableToBeBooked = true;//isAvailable(commonAvailability, req.body.start, selectedEventType.length); if (!isAvailableToBeBooked) { return res.status(400).json({ message: `${currentUser.name} is unavailable at this time.` });