Rejected bookings should be displayed in cancelled bookings tab (#1100)

* fix: rejected bookings should be displayed in cancelled bookings tab

* fix: add migration to update status of rejected bookings

* unrelated fix

Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
Mihai CandAlex van Andel authored and GitHub committed 2021-11-04 22:24:15 +00:00
1 parent 773e9ac57e
commit debef8119e
3 files changed
+29 -4

No files matched your search

+2 -1
View File
@@ -1,4 +1,4 @@
import { User, Booking, SchedulingType } from "@prisma/client";
import { User, Booking, SchedulingType, BookingStatus } from "@prisma/client";
import type { NextApiRequest, NextApiResponse } from "next";
import { refund } from "@ee/lib/stripe/server";
@@ -146,6 +146,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
},
data: {
rejected: true,
status: BookingStatus.REJECTED,
},
});
const attendeeMail = new EventRejectionMail(evt);