fix: google meet link is disappear (#25368)

This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-11-25 16:25:12 +05:30
1 parent ef3281f06f
commit 9c2d7f99c2
2 files changed
+17 -1

No files matched your search

@@ -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")) {