Scheduling infrastructure for absolutely everyone.
fix: meeting not getting deleted (#7878)
Nafees Nazik1bf50e09cdeb
diff --git a/packages/features/bookings/lib/handleCancelBooking.ts b/packages/features/bookings/lib/handleCancelBooking.tsindex ab2cc124fd3..acbb03c994f 100644--- a/packages/features/bookings/lib/handleCancelBooking.ts+++ b/packages/features/bookings/lib/handleCancelBooking.ts@@ -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));});}