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 <morgan@cal.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Morgan
2026-01-07 19:55:47 +05:30
committed by GitHub
co-authored by morgan@cal.com <morgan@cal.com> Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent 0d905a6c11
commit 2cadc0b1e9
2 changed files with 1 additions and 5 deletions
@@ -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([[]]);
});
});
@@ -151,7 +151,6 @@ const getCalendarsEvents = async (
dateFrom,
dateTo,
passedSelectedCalendars,
shouldServeCache,
allowFallbackToPrimary
);
performance.mark("eventBusyDatesEnd");