refactor: better observability in api routes (#18810)
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
1 parent
35565c8f7e
commit
1af3caa8cc
3 files changed
+17
-4
No files matched your search
@@ -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");
|
||||
Reference in new issue
Block a user