fix: booking limits for team event types (#14135)

* use bookings from all users

* add same changes to handleNewBooking

---------

Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
Carina WollendorferandCarinaWolli authored and GitHub committed 2024-03-19 13:12:09 +05:30
1 parent ece74cbc49
commit aaf630ed18
2 files changed
+2 -4

No files matched your search

@@ -371,7 +371,7 @@ export async function ensureAvailableUsers(
user,
eventType,
rescheduleUid: input.originalRescheduledBooking?.uid ?? null,
busyTimesFromLimitsBookings: busyTimesFromLimitsBookingsAllUsers.filter((b) => b.userId === user.id),
busyTimesFromLimitsBookings: busyTimesFromLimitsBookingsAllUsers,
}
);