From 3a00ab0d0e94faa8786aae0fbb477c97e3ae214c Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Mon, 16 Aug 2021 22:51:52 +0000 Subject: [PATCH] Switched exclusivity, initial bugfix was incorrect --- pages/api/book/[user].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/book/[user].ts b/pages/api/book/[user].ts index ca9f11b8c3..6950c76134 100644 --- a/pages/api/book/[user].ts +++ b/pages/api/book/[user].ts @@ -36,7 +36,7 @@ function isAvailable(busyTimes, time, length) { const endTime = dayjs(busyTime.end); // Check if time is between start and end times - if (dayjs(time).isBetween(startTime, endTime, null, "(]")) { + if (dayjs(time).isBetween(startTime, endTime, null, "[)")) { t = false; }