File tree Expand file tree Collapse file tree
packages/features/ee/round-robin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // eslint-disable-next-line no-restricted-imports
1+
22import { cloneDeep } from "lodash" ;
33
44import { enrichUserWithDelegationCredentialsIncludeServiceAccountKey } from "@calcom/app-store/delegationCredential" ;
@@ -312,6 +312,13 @@ export const roundRobinManualReassignment = async ({
312312 conferenceCredentialId : conferenceCredentialId ?? undefined ,
313313 } ;
314314
315+ if ( hasOrganizerChanged ) {
316+ // location might changed and will be new created in eventManager.create (organizer default location)
317+ evt . videoCallData = undefined ;
318+ // To prevent "The requested identifier already exists" error while updating event, we need to remove iCalUID
319+ evt . iCalUID = undefined ;
320+ }
321+
315322 const credentials = await prisma . credential . findMany ( {
316323 where : { userId : newUser . id } ,
317324 include : { user : { select : { email : true } } } ,
Original file line number Diff line number Diff line change 1- // eslint-disable-next-line no-restricted-imports
1+
22import { cloneDeep } from "lodash" ;
33
44import {
@@ -341,6 +341,12 @@ export const roundRobinReassignment = async ({
341341 ...( platformClientParams ? platformClientParams : { } ) ,
342342 } ;
343343
344+ if ( hasOrganizerChanged ) {
345+ // location might changed and will be new created in eventManager.create (organizer default location)
346+ evt . videoCallData = undefined ;
347+ // To prevent "The requested identifier already exists" error while updating event, we need to remove iCalUID
348+ evt . iCalUID = undefined ;
349+ }
344350 const credentials = await prisma . credential . findMany ( {
345351 where : {
346352 userId : organizer . id ,
You can’t perform that action at this time.
0 commit comments