Skip to content

Commit

Permalink
fix: event creation on external office calendar (#3152)
Browse files Browse the repository at this point in the history
* fix: event creation on external office calendar

* chore: simplify fix implementation

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
  • Loading branch information
2 people authored and zomars committed Jul 1, 2022
1 parent 240fc67 commit 8bace32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8bace32

Please sign in to comment.