Scheduling infrastructure for absolutely everyone.
perf: GCal reduce calendar payload (#10853)
Joe Au-Yeung155775556dcc
diff --git a/packages/app-store/googlecalendar/lib/CalendarService.ts b/packages/app-store/googlecalendar/lib/CalendarService.tsindex 5e515672339..b746233a437 100644--- a/packages/app-store/googlecalendar/lib/CalendarService.ts+++ b/packages/app-store/googlecalendar/lib/CalendarService.ts@@ -352,7 +352,9 @@ export default class GoogleCalendarService implements Calendar {(selectedCalendarIds.length === 0? calendar.calendarList- .list()+ .list({+ fields: "items(id)",+ }).then((cals) => cals.data.items?.map((cal) => cal.id).filter(Boolean) || []): Promise.resolve(selectedCalendarIds))@@ -378,7 +380,6 @@ export default class GoogleCalendarService implements Calendar {});return c;}, [] as Prisma.PromiseReturnType<CalendarService["getAvailability"]>);-resolve(result);});@@ -400,7 +401,9 @@ export default class GoogleCalendarService implements Calendar {});calendar.calendarList- .list()+ .list({+ fields: "items(id,summary,primary,accessRole)",+ }).then((cals) => {resolve(cals.data.items?.map((cal) => {