Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line no-restricted-imports
import { cloneDeep } from "lodash";

import { enrichUserWithDelegationCredentialsIncludeServiceAccountKey } from "@calcom/app-store/delegationCredential";
Expand Down Expand Up @@ -312,6 +312,13 @@ export const roundRobinManualReassignment = async ({
conferenceCredentialId: conferenceCredentialId ?? undefined,
};

if( hasOrganizerChanged ){
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have this similar logic in handleNewBooking, which we somehow skipped in the roundRobinManualReassignment and roundRobinReassignment

// location might changed and will be new created in eventManager.create (organizer default location)
evt.videoCallData = undefined;
// To prevent "The requested identifier already exists" error while updating event, we need to remove iCalUID
evt.iCalUID = undefined;
}

const credentials = await prisma.credential.findMany({
where: { userId: newUser.id },
include: { user: { select: { email: true } } },
Expand Down
8 changes: 7 additions & 1 deletion packages/features/ee/round-robin/roundRobinReassignment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line no-restricted-imports
import { cloneDeep } from "lodash";

import {
Expand Down Expand Up @@ -341,6 +341,12 @@ export const roundRobinReassignment = async ({
...(platformClientParams ? platformClientParams : {}),
};

if(hasOrganizerChanged){
// location might changed and will be new created in eventManager.create (organizer default location)
evt.videoCallData = undefined;
// To prevent "The requested identifier already exists" error while updating event, we need to remove iCalUID
evt.iCalUID = undefined;
}
const credentials = await prisma.credential.findMany({
where: {
userId: organizer.id,
Expand Down
Loading