diff --git a/pages/api/me/_get.ts b/pages/api/me/_get.ts index 7fe25139a8..40a518f9ae 100644 --- a/pages/api/me/_get.ts +++ b/pages/api/me/_get.ts @@ -1,6 +1,6 @@ import type { NextApiRequest } from "next"; -import { defaultHandler, defaultResponder } from "@calcom/lib/server"; +import { defaultResponder } from "@calcom/lib/server"; import { schemaUserReadPublic } from "@lib/validations/user"; @@ -16,6 +16,4 @@ async function handler(req: NextApiRequest): Promise<{ error?: string; user?: Pa return { user }; } -export default defaultHandler({ - GET: Promise.resolve({ default: defaultResponder(handler) }), -}); +export default defaultResponder(handler);