Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion apps/web/pages/success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ export default function Success(props: SuccessProps) {
</div>
{!needsConfirmation &&
!isCancelled &&
bookingInfo &&
(!isCancellationMode ? (
<div className="border-bookinglightest text-bookingdark mt-2 grid grid-cols-3 border-b py-4 text-left dark:border-gray-900">
<span className="flex self-center font-medium text-gray-700 ltr:mr-2 rtl:ml-2 dark:text-gray-50">
Expand Down Expand Up @@ -847,7 +848,9 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
}

const bookingInfo = await prisma.booking.findFirst({
where,
where: {
id: bookingId,
},
Comment on lines +851 to +853
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gitstart @baileypumfleet This is overwriting the where condition and will break the success page for team and dynamic events. I will have to revert this commit.

select: {
title: true,
uid: true,
Expand Down