updated event object to hold rejection reason (#1777)
* updated event object to hold rejection reason * lint fix Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>pull/1769/head^2
parent
c4862c4b92
commit
0675ff8762
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue