From 833adaf7e9e3d6ca926a12c9cee56242990d06e8 Mon Sep 17 00:00:00 2001 From: zomars Date: Wed, 15 Jun 2022 09:24:12 -0600 Subject: [PATCH] =?UTF-8?q?Revert=20"The=20booker=20get=E2=80=99s=20the=20?= =?UTF-8?q?Ui=20option=20to=20reschedule=20but=20can=E2=80=99t=20reschedul?= =?UTF-8?q?e=20(#3061)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 8cfc91df95ce7f23b2872287dde19df37620fcc8. --- apps/web/pages/success.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/web/pages/success.tsx b/apps/web/pages/success.tsx index 4d43a5e3d2..e729116c6d 100644 --- a/apps/web/pages/success.tsx +++ b/apps/web/pages/success.tsx @@ -420,7 +420,6 @@ export default function Success(props: SuccessProps) { {!needsConfirmation && !isCancelled && - bookingInfo && (!isCancellationMode ? (
@@ -848,9 +847,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { } const bookingInfo = await prisma.booking.findFirst({ - where: { - id: bookingId, - }, + where, select: { title: true, uid: true,