fix: set organiser email to external id (#7406)

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
This commit is contained in:
Udit Takkar
2023-02-28 14:53:20 -07:00
committed by GitHub
parent 86ab19be30
commit 76cf352bce
@@ -88,8 +88,11 @@ export default class GoogleCalendarService implements Calendar {
{
...calEventRaw.organizer,
id: String(calEventRaw.organizer.id),
organizer: true,
responseStatus: "accepted",
organizer: true,
email: calEventRaw.destinationCalendar?.externalId
? calEventRaw.destinationCalendar.externalId
: calEventRaw.organizer.email,
},
// eslint-disable-next-line
...calEventRaw.attendees.map(({ id, ...rest }) => ({