From c4d4dbd2b5269ed6e48ac02bd18265a452990904 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Thu, 7 Sep 2023 13:05:01 +0530 Subject: [PATCH] Apply suggestions from code review --- packages/features/bookings/lib/handleNewBooking.ts | 1 - packages/features/ee/payments/api/webhook.ts | 4 ---- 2 files changed, 5 deletions(-) diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.ts index f41d4a1110..112482200d 100644 --- a/packages/features/bookings/lib/handleNewBooking.ts +++ b/packages/features/bookings/lib/handleNewBooking.ts @@ -2236,7 +2236,6 @@ async function handler( !originalRescheduledBooking?.paid && !!booking; - console.log("Booking requires payment", bookingRequiresPayment, paymentAppData); if (!isConfirmedByDefault && noEmail !== true && !bookingRequiresPayment) { await sendOrganizerRequestEmail({ ...evt, additionalNotes }); await sendAttendeeRequestEmail({ ...evt, additionalNotes }, attendeesList[0]); diff --git a/packages/features/ee/payments/api/webhook.ts b/packages/features/ee/payments/api/webhook.ts index 740483cdca..ba2937f562 100644 --- a/packages/features/ee/payments/api/webhook.ts +++ b/packages/features/ee/payments/api/webhook.ts @@ -44,9 +44,6 @@ async function getEventType(id: number) { } async function getBooking(bookingId: number) { - log.silly("getBooking", { - bookingId, - }); const booking = await prisma.booking.findUnique({ where: { id: bookingId, @@ -228,7 +225,6 @@ export async function handlePaymentSuccess(event: Stripe.Event) { await prisma.$transaction([paymentUpdate, bookingUpdate]); if (!isConfirmed) { - //TODO: Test an event that requires confirmation conditionally if (!requiresConfirmation) { await handleConfirmation({ user: userWithCredentials,