Skip to content

Commit 4cef0e9

Browse files
authored
Merge branch 'main' into calendar-error-fix-busy-times
2 parents 59e1276 + 704bbf2 commit 4cef0e9

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

packages/app-store/_utils/getCalendar.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export const getCalendar = async (
4949
log.warn(`calendar of type ${calendarType} is not implemented`);
5050
return null;
5151
}
52-
log.info("Got calendarApp", calendarApp.lib.CalendarService);
5352
const CalendarService = calendarApp.lib.CalendarService;
5453
return new CalendarService(credential);
5554
};

packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ const _ensureAvailableUsers = async (
222222

223223
if (!dateRanges.length) {
224224
loggerWithEventDetails.error(
225-
`User does not have availability at this time.`,
225+
`User ${user.id} does not have availability at this time.`,
226226
piiFreeInputDataForLogging
227227
);
228228
return;

packages/lib/CalendarManager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,10 @@ export const getBusyCalendarTimes = async (
267267
);
268268
}
269269
} catch (e) {
270-
log.warn("Error getting busy calendar times", safeStringify(e));
270+
log.warn(`Error getting calendar availability`, {
271+
selectedCalendarIds: selectedCalendars.map((calendar) => calendar.externalId),
272+
error: safeStringify(e),
273+
});
271274
return { success: false, data: [{ start: startDate, end: endDate, source: "error-placeholder" }] };
272275
}
273276
return { success: true, data: results.reduce((acc, availability) => acc.concat(availability), []) };

0 commit comments

Comments
 (0)