From 2cadc0b1e974e37215fe1bd583fcd4dea0900502 Mon Sep 17 00:00:00 2001 From: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Date: Wed, 7 Jan 2026 16:25:47 +0200 Subject: [PATCH] fix: remove shouldServeCache in getCalendarEvent getAvailability call (#26541) * fix: remove shouldServeCache in getCalendarEvent getAvailability call * test: remove shouldServeCache parameter from getAvailability test expectations Co-Authored-By: morgan@cal.com --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- packages/features/calendars/lib/getCalendarsEvents.test.ts | 5 +---- packages/features/calendars/lib/getCalendarsEvents.ts | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/features/calendars/lib/getCalendarsEvents.test.ts b/packages/features/calendars/lib/getCalendarsEvents.test.ts index 2c938bd833..c480fb9e14 100644 --- a/packages/features/calendars/lib/getCalendarsEvents.test.ts +++ b/packages/features/calendars/lib/getCalendarsEvents.test.ts @@ -274,7 +274,6 @@ describe("getCalendarsEvents", () => { "2010-12-01", "2010-12-04", [selectedCalendar], - undefined, false ); expect(result).toEqual([ @@ -345,14 +344,12 @@ describe("getCalendarsEvents", () => { "2010-12-01", "2010-12-04", [selectedGoogleCalendar], - undefined, false ); expect(getOfficeAvailabilitySpy).toHaveBeenCalledWith( "2010-12-01", "2010-12-04", [selectedOfficeCalendar], - undefined, false ); expect(result).toEqual([ @@ -396,7 +393,7 @@ describe("getCalendarsEvents", () => { const result = await getCalendarsEvents(credentials, startDate, endDate, []); - expect(getAvailabilitySpy).toHaveBeenCalledWith(startDate, endDate, [], undefined, true); + expect(getAvailabilitySpy).toHaveBeenCalledWith(startDate, endDate, [], true); expect(result).toEqual([[]]); }); }); diff --git a/packages/features/calendars/lib/getCalendarsEvents.ts b/packages/features/calendars/lib/getCalendarsEvents.ts index 64d950f159..e5634b3a38 100644 --- a/packages/features/calendars/lib/getCalendarsEvents.ts +++ b/packages/features/calendars/lib/getCalendarsEvents.ts @@ -151,7 +151,6 @@ const getCalendarsEvents = async ( dateFrom, dateTo, passedSelectedCalendars, - shouldServeCache, allowFallbackToPrimary ); performance.mark("eventBusyDatesEnd");