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
parent
240fc67d72
commit
f639405c20
|
@ -42,7 +42,7 @@ export default class Office365CalendarService implements Calendar {
|
||||||
? `${event.destinationCalendar.externalId}/`
|
? `${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",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: "Bearer " + accessToken,
|
Authorization: "Bearer " + accessToken,
|
||||||
|
|
Loading…
Reference in New Issue