Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

clean-up post route for team user

Francis Cao14ee3990cd2f
diff --git a/src/app/api/teams/[teamId]/users/route.ts b/src/app/api/teams/[teamId]/users/route.ts
index 19cd61539..57460b89e 100644
--- a/src/app/api/teams/[teamId]/users/route.ts
+++ b/src/app/api/teams/[teamId]/users/route.ts
@@ -45,12 +45,9 @@ export async function GET(request: Request, { params }: { params: Promise<{ team
return json(users);
}
-export async function POST(
- request: Request,
- { params }: { params: Promise<{ teamId: string; userId: string }> },
-) {
+export async function POST(request: Request, { params }: { params: Promise<{ teamId: string }> }) {
const schema = z.object({
- userId: z.string(),
+ userId: z.string().uuid(),
role: roleParam,
});