fix: google meet link is disappear (#25368)

This commit is contained in:
Anik Dhabal Babu
2025-11-25 16:25:12 +05:30
committed by GitHub
parent ef3281f06f
commit 9c2d7f99c2
2 changed files with 17 additions and 1 deletions
@@ -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")) {