fix: google meet link is disappear (#25368)
This commit is contained in:
@@ -34,8 +34,12 @@ export async function getBookingToDelete(id: number | undefined, uid: string | u
|
||||
credentialId: true,
|
||||
thirdPartyRecurringEventId: true,
|
||||
delegationCredentialId: true,
|
||||
meetingUrl: true,
|
||||
meetingId: true,
|
||||
meetingPassword: true,
|
||||
},
|
||||
},
|
||||
metadata: true,
|
||||
payment: true,
|
||||
paid: true,
|
||||
eventType: {
|
||||
|
||||
@@ -94,12 +94,24 @@ async function cancelAttendeeSeat(
|
||||
});
|
||||
|
||||
if (credential) {
|
||||
const videoCallReference = bookingToDelete.references.find((reference) =>
|
||||
reference.type.includes("_video")
|
||||
);
|
||||
|
||||
if (videoCallReference) {
|
||||
evt.videoCallData = {
|
||||
type: videoCallReference.type,
|
||||
id: videoCallReference.meetingId,
|
||||
password: videoCallReference?.meetingPassword,
|
||||
url: videoCallReference.meetingUrl,
|
||||
};
|
||||
}
|
||||
const updatedEvt = {
|
||||
...evt,
|
||||
attendees: evt.attendees.filter((evtAttendee) => attendee.email !== evtAttendee.email),
|
||||
calendarDescription: getRichDescription(evt),
|
||||
};
|
||||
if (reference.type.includes("_video")) {
|
||||
if (reference.type.includes("_video") && reference.type !== "google_meet_video") {
|
||||
integrationsToUpdate.push(updateMeeting(credential, updatedEvt, reference));
|
||||
}
|
||||
if (reference.type.includes("_calendar")) {
|
||||
|
||||
Reference in New Issue
Block a user