Merge pull request #161 from calcom/fix/me

pull/9078/head
Agusti Fernandez Pardo 2022-09-06 19:20:41 +02:00 committed by GitHub
commit 5d09739966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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);