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

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
freshchat
Udit Takkar 2023-03-01 03:23:20 +05:30 committed by GitHub
parent 86ab19be30
commit 76cf352bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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 }) => ({