Merge pull request #161 from calcom/fix/me
commit
5d09739966
|
@ -1,6 +1,6 @@
|
||||||
import type { NextApiRequest } from "next";
|
import type { NextApiRequest } from "next";
|
||||||
|
|
||||||
import { defaultHandler, defaultResponder } from "@calcom/lib/server";
|
import { defaultResponder } from "@calcom/lib/server";
|
||||||
|
|
||||||
import { schemaUserReadPublic } from "@lib/validations/user";
|
import { schemaUserReadPublic } from "@lib/validations/user";
|
||||||
|
|
||||||
|
@ -16,6 +16,4 @@ async function handler(req: NextApiRequest): Promise<{ error?: string; user?: Pa
|
||||||
return { user };
|
return { user };
|
||||||
}
|
}
|
||||||
|
|
||||||
export default defaultHandler({
|
export default defaultResponder(handler);
|
||||||
GET: Promise.resolve({ default: defaultResponder(handler) }),
|
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in New Issue