From 4671ffc4f4139b24326d140807a461ca927ade25 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Fri, 7 Feb 2025 19:24:41 +0530 Subject: [PATCH] fix (#19156) --- packages/app-store/zohocalendar/lib/CalendarService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/app-store/zohocalendar/lib/CalendarService.ts b/packages/app-store/zohocalendar/lib/CalendarService.ts index ab478d5d5b..fb8547258f 100644 --- a/packages/app-store/zohocalendar/lib/CalendarService.ts +++ b/packages/app-store/zohocalendar/lib/CalendarService.ts @@ -405,6 +405,7 @@ export default class ZohoCalendarService implements Calendar { try { const resp = await this.fetcher(`/calendars`); const data = (await this.handleData(resp, this.log)) as ZohoCalendarListResp; + const userInfo = await this.getUserInfo(); const result = data.calendars .filter((cal) => { if (cal.privilege === "owner") { @@ -418,7 +419,7 @@ export default class ZohoCalendarService implements Calendar { integration: this.integrationName, name: cal.name || "No calendar name", primary: cal.isdefault, - email: cal.uid ?? "", + email: userInfo.Email ?? "", }; return calendar; }); @@ -436,7 +437,7 @@ export default class ZohoCalendarService implements Calendar { integration: this.integrationName, name: cal.name || "No calendar name", primary: cal.isdefault, - email: cal.uid ?? "", + email: userInfo.Email ?? "", }; return calendar; });