Scheduling infrastructure for absolutely everyone.
Switched exclusivity, initial bugfix was incorrect
Alex van Andel3a00ab0d0e94
diff --git a/pages/api/book/[user].ts b/pages/api/book/[user].tsindex ca9f11b8c3c..6950c76134c 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;}