From 0675ff8762f9a3c45d1ae100c99ef726ac0ec49a Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Thu, 10 Feb 2022 15:15:27 +0530 Subject: [PATCH] updated event object to hold rejection reason (#1777) * updated event object to hold rejection reason * lint fix Co-authored-by: Bailey Pumfleet --- pages/api/book/confirm.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/api/book/confirm.ts b/pages/api/book/confirm.ts index 9d0d62d1..eb62a2f8 100644 --- a/pages/api/book/confirm.ts +++ b/pages/api/book/confirm.ts @@ -187,6 +187,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) } else { await refund(booking, evt); const rejectionReason = asStringOrNull(req.body.reason) || ""; + evt.rejectionReason = rejectionReason; await prisma.booking.update({ where: { id: bookingId,