fix: Fix "could not book the meeting" issue (fix-confirmBookingIssue) (#12305)
Co-authored-by: gitstart-calcom <[email protected]> Co-authored-by: GitStart-Cal.com <[email protected]>
This commit is contained in:
1 file changed
+1
-5
@@ -47,11 +47,7 @@ export function processWorkingHours({
|
||||
const startResult = dayjs.max(start, dateFrom.tz(timeZone));
|
||||
const endResult = dayjs.min(end, dateTo.tz(timeZone));
|
||||
|
||||
const isLater =
|
||||
startResult.isAfter(endResult, "hour") ||
|
||||
(startResult.isSame(endResult, "hour") && startResult.isAfter(endResult, "minute"));
|
||||
|
||||
if (isLater) {
|
||||
if (endResult.isBefore(startResult)) {
|
||||
// if an event ends before start, it's not a result.
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user