fix: event creation on external office calendar (#3152)

* fix: event creation on external office calendar

* chore: simplify fix implementation

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
pull/3187/head^2
James Vansteenkiste 2022-07-01 07:26:20 -04:00 committed by GitHub
parent 240fc67d72
commit f639405c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,