fix: meeting not getting deleted (#7878)

This commit is contained in:
Nafees Nazik authored and GitHub committed 2023-03-22 11:18:00 -07:00
1 parent d1ca7b4bdd
commit 1bf50e09cd
1 file changed
+2 -1
@@ -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));
});
}