chore: Add skeleton for BookingCancelService (#24038)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2025-10-21 12:29:17 +05:30
1 parent 4cee53b07c
commit 5e5e77236a
10 files changed
+158 -14

No files matched your search

+9
View File
@@ -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 });