Scheduling infrastructure for absolutely everyone.
Detect conflicts when the time is the same as startTime
Alex van Andel03cfd4ba8b48
diff --git a/pages/api/book/[user].ts b/pages/api/book/[user].tsindex 8fe23cb93af..ca9f11b8c3c 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)) {+ if (dayjs(time).isBetween(startTime, endTime, null, "(]")) {t = false;}