From f639405c20db48c034c4ef354c5199c720d1409d Mon Sep 17 00:00:00 2001 From: James Vansteenkiste Date: Fri, 1 Jul 2022 07:26:20 -0400 Subject: [PATCH] fix: event creation on external office calendar (#3152) * fix: event creation on external office calendar * chore: simplify fix implementation Co-authored-by: Bailey Pumfleet --- packages/app-store/office365calendar/lib/CalendarService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-store/office365calendar/lib/CalendarService.ts b/packages/app-store/office365calendar/lib/CalendarService.ts index 2d1827e06d..3b6629f3ee 100644 --- a/packages/app-store/office365calendar/lib/CalendarService.ts +++ b/packages/app-store/office365calendar/lib/CalendarService.ts @@ -42,7 +42,7 @@ export default class Office365CalendarService implements Calendar { ? `${event.destinationCalendar.externalId}/` : ""; - const response = await fetch(`https://graph.microsoft.com/v1.0/me/calendar/events`, { + const response = await fetch(`https://graph.microsoft.com/v1.0/me/calendars/${calendarId}events`, { method: "POST", headers: { Authorization: "Bearer " + accessToken,