fix: don't use defaultHandler w promise in api yet, was from console

pull/9078/head
Agusti Fernandez Pardo 2022-09-06 19:20:04 +02:00
parent 7707275f94
commit 80bd5068d4
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);