Skip to content

Scheduling infrastructure for absolutely everyone.

hotfix for booking

Malte Delfsb5b480f7e21d
diff --git a/pages/api/book/[user].ts b/pages/api/book/[user].ts
index 1140a653a1f..c6d41e07118 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.` });