Scheduling infrastructure for absolutely everyone.
Add missing zoho-bigin import (#8798)
Hariom Balharaf5a38c3f89bb
diff --git a/packages/app-store/_utils/getCalendar.ts b/packages/app-store/_utils/getCalendar.tsindex 5fddb8b419a..b2ed77fdce3 100644--- a/packages/app-store/_utils/getCalendar.ts+++ b/packages/app-store/_utils/getCalendar.ts@@ -12,7 +12,14 @@ export const getCalendar = async (credential: CredentialPayload | null): Promiseif (calendarType?.endsWith("_other_calendar")) {calendarType = calendarType.split("_other_calendar")[0];}- const calendarApp = await appStore[calendarType.split("_").join("") as keyof typeof appStore]();+ const calendarAppImportFn = appStore[calendarType.split("_").join("") as keyof typeof appStore];++ if (!calendarAppImportFn) {+ log.warn(`calendar of type ${calendarType} is not implemented`);+ return null;+ }++ const calendarApp = await calendarAppImportFn();if (!(calendarApp && "lib" in calendarApp && "CalendarService" in calendarApp.lib)) {log.warn(`calendar of type ${calendarType} is not implemented`);return null;diff --git a/packages/app-store/index.ts b/packages/app-store/index.tsindex 1453334b4cd..cf5271ecbab 100644--- a/packages/app-store/index.ts+++ b/packages/app-store/index.ts@@ -28,6 +28,7 @@ const appStore = {exchangecalendar: () => import("./exchangecalendar"),facetime: () => import("./facetime"),sylapsvideo: () => import("./sylapsvideo"),+ "zoho-bigin": () => import("./zoho-bigin"),};export default appStore;