adding organizer as attendee to google calendar events (#2779)

pull/2806/head^2
Ken Miller 2022-05-18 14:09:15 -07:00 committed by GitHub
parent 1de50bd093
commit 1c296fb2d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -102,10 +102,10 @@ export default class GoogleCalendarService implements Calendar {
dateTime: calEventRaw.endTime,
timeZone: calEventRaw.organizer.timeZone,
},
attendees: calEventRaw.attendees.map((attendee) => ({
attendees: [{...calEventRaw.organizer, organizer: true }, ... calEventRaw.attendees.map((attendee) => ({
...attendee,
responseStatus: "accepted",
})),
}))],
reminders: {
useDefault: true,
},