6254 double creation of contacts when updating calendar event participants (#6269)
Closes #6254
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { calendar_v3 as calendarV3 } from 'googleapis';
|
||||
|
||||
import { CalendarEventWithParticipants } from 'src/modules/calendar/common/types/calendar-event';
|
||||
import { CalendarEventParticipantResponseStatus } from 'src/modules/calendar/common/standard-objects/calendar-event-participant.workspace-entity';
|
||||
import { CalendarEventWithParticipants } from 'src/modules/calendar/common/types/calendar-event';
|
||||
|
||||
export const formatGoogleCalendarEvents = (
|
||||
events: calendarV3.Schema$Event[],
|
||||
@ -44,7 +44,6 @@ const formatGoogleCalendarEvent = (
|
||||
recurringEventExternalId: event.recurringEventId ?? '',
|
||||
participants:
|
||||
event.attendees?.map((attendee) => ({
|
||||
iCalUID: event.iCalUID ?? '',
|
||||
handle: attendee.email ?? '',
|
||||
displayName: attendee.displayName ?? '',
|
||||
isOrganizer: attendee.organizer === true,
|
||||
|
||||
@ -135,7 +135,6 @@ export class CalendarSaveEventsService {
|
||||
await this.calendarEventParticipantService.upsertAndDeleteCalendarEventParticipants(
|
||||
participantsToSave,
|
||||
participantsToUpdate,
|
||||
workspaceId,
|
||||
transactionManager,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user