fix: meeting not getting deleted (#7878)

This commit is contained in:
Nafees Nazik 2023-03-22 23:48:00 +05:30 committed by GitHub
parent d1ca7b4bdd
commit 1bf50e09cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -494,7 +494,8 @@ async function handler(req: CustomRequest) {
bookingToDelete.user.credentials
.filter((credential) => credential.type.endsWith("_video"))
.forEach((credential) => {
apiDeletes.push(deleteMeeting(credential, bookingToDelete.uid));
const uidToDelete = bookingToDelete?.references?.[0].uid ?? bookingToDelete.uid;
apiDeletes.push(deleteMeeting(credential, uidToDelete));
});
}