Skip to content

Scheduling infrastructure for absolutely everyone.

fix: no http_method middleware needed as already handled by defaultHandler

Agusti Fernandez Pardo3f6e7904cbbe
diff --git a/pages/api/teams/[teamId]/index.ts b/pages/api/teams/[teamId]/index.ts
index ed397498d47..3644bbfd615 100644
--- a/pages/api/teams/[teamId]/index.ts
+++ b/pages/api/teams/[teamId]/index.ts
@@ -3,7 +3,7 @@ import { defaultHandler } from "@calcom/lib/server";
import { withMiddleware } from "@lib/helpers/withMiddleware";
import { withValidQueryTeamId } from "@lib/validations/shared/queryTeamId";
-export default withMiddleware("HTTP_GET_DELETE_PATCH")(
+export default withMiddleware()(
withValidQueryTeamId(
defaultHandler({
GET: import("./_get"),