chore: Add skeleton for BookingCancelService (#24038)
This commit is contained in:
1 parent
4cee53b07c
commit
5e5e77236a
10 files changed
+158
-14
No files matched your search
@@ -26,11 +26,20 @@ async function handler(req: NextRequest) {
|
||||
cookieStore.delete("calcom.csrf_token");
|
||||
|
||||
const session = await getServerSession({ req: buildLegacyRequest(await headers(), await cookies()) });
|
||||
|
||||
const result = await handleCancelBooking({
|
||||
bookingData,
|
||||
userId: session?.user?.id || -1,
|
||||
});
|
||||
|
||||
// const bookingCancelService = getBookingCancelService();
|
||||
// const result = await bookingCancelService.cancelBooking({
|
||||
// bookingData: bookingData,
|
||||
// bookingMeta: {
|
||||
// userId: session?.user?.id || -1,
|
||||
// },
|
||||
// });
|
||||
|
||||
const statusCode = result.success ? 200 : 400;
|
||||
|
||||
return NextResponse.json(result, { status: statusCode });
|
||||
|
||||
Reference in new issue
Block a user