refactor: better observability in api routes (#18810)

Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
Omar LópezandKeith Williams authored and GitHub committed 2025-01-22 20:52:09 +00:00
1 parent 35565c8f7e
commit 1af3caa8cc
3 files changed
+17 -4

No files matched your search

+1 -2
View File
@@ -1,4 +1,3 @@
import { wrapApiHandlerWithSentry } from "@sentry/nextjs";
import type { NextApiRequest, NextApiResponse } from "next";
import { getServerSession } from "@calcom/features/auth/lib/getServerSession";
@@ -30,4 +29,4 @@ async function handler(req: NextApiRequest & { userId?: number }, res: NextApiRe
return booking;
}
export default defaultResponder(wrapApiHandlerWithSentry(handler, "/api/book/event"));
export default defaultResponder(handler, "/api/book/event");