chore: Log availability snapshot when booking is created (#22782)

* Add userAvailability type

* Add user availability to return value of getUsersAvailability

* Log availabilitySnapshot when booking is created

* Type fix
This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2025-07-29 12:10:21 -04:00
1 parent 7b2f811bfe
commit 4e92b6edeb
4 files changed
+14 -4

No files matched your search

+1 -1
View File
@@ -266,7 +266,7 @@ export type CurrentSeats = Awaited<ReturnType<typeof _getCurrentSeats>>;
export const getCurrentSeats = withReporting(_getCurrentSeats, "getCurrentSeats");
type GetUserAvailabilityResult = ReturnType<typeof _getUserAvailability>;
export type GetUserAvailabilityResult = Awaited<ReturnType<typeof _getUserAvailability>>;
/** This should be called getUsersWorkingHoursAndBusySlots (...and remaining seats, and final timezone) */
const _getUserAvailability = async function getUsersWorkingHoursLifeTheUniverseAndEverythingElse(