From ec97971e7d11ad0b78b6994e16fac7eff51d6234 Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Date: Thu, 10 Mar 2022 16:15:45 -0500 Subject: [PATCH] Fixed API call route (#2105) --- .../integrations/calendar/services/Office365CalendarService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/lib/integrations/calendar/services/Office365CalendarService.ts b/apps/web/lib/integrations/calendar/services/Office365CalendarService.ts index f3b7a46dc8..a8480a6e22 100644 --- a/apps/web/lib/integrations/calendar/services/Office365CalendarService.ts +++ b/apps/web/lib/integrations/calendar/services/Office365CalendarService.ts @@ -35,7 +35,7 @@ export default class Office365CalendarService implements Calendar { ? `${event.destinationCalendar.externalId}/` : ""; - const response = await fetch(`https://graph.microsoft.com/v1.0/me/calendar/${calendarId}events`, { + const response = await fetch(`https://graph.microsoft.com/v1.0/me/calendar/events`, { method: "POST", headers: { Authorization: "Bearer " + accessToken,