From 833d3a25bfdddf1c0c92b6cecd874224a95bd398 Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung Date: Fri, 27 Oct 2023 16:35:08 -0400 Subject: [PATCH] Fix updating iCalUID --- packages/features/bookings/lib/handleNewBooking.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.ts index c873b65f6a..a8b4b5805e 100644 --- a/packages/features/bookings/lib/handleNewBooking.ts +++ b/packages/features/bookings/lib/handleNewBooking.ts @@ -2319,9 +2319,11 @@ async function handler( // The eventManager and handleAppsStatus could change the iCalUID. At this point we can update the DB record await prisma.booking.update({ where: { - booking: booking.id, + id: booking.id, + }, + data: { + iCalUID: evt.iCalUID, }, - iCalUID: evt.iCalUID, }); } }