6254 double creation of contacts when updating calendar event participants (#6269)

Closes #6254
This commit is contained in:
bosiraphael
2024-07-16 10:47:18 +02:00
committed by GitHub
parent 2218e20595
commit d216bfdd4e
4 changed files with 48 additions and 138 deletions

View File

@ -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,

View File

@ -135,7 +135,6 @@ export class CalendarSaveEventsService {
await this.calendarEventParticipantService.upsertAndDeleteCalendarEventParticipants(
participantsToSave,
participantsToUpdate,
workspaceId,
transactionManager,
);
});