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>
This commit is contained in:
James VansteenkisteandBailey Pumfleet authored and GitHub committed 2022-07-01 12:26:20 +01:00
1 parent 240fc67d72
commit f639405c20
1 file changed
+1 -1
@@ -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,