diff --git a/src/app/api/teams/[teamId]/users/route.ts b/src/app/api/teams/[teamId]/users/route.ts index 5ec9435f..16b50fc7 100644 --- a/src/app/api/teams/[teamId]/users/route.ts +++ b/src/app/api/teams/[teamId]/users/route.ts @@ -50,6 +50,7 @@ export async function POST( { params }: { params: Promise<{ teamId: string; userId: string }> }, ) { const schema = z.object({ + userId: z.string(), role: roleParam, }); diff --git a/src/app/share/[...shareId]/page.tsx b/src/app/share/[...shareId]/page.tsx index c06274aa..548082fb 100644 --- a/src/app/share/[...shareId]/page.tsx +++ b/src/app/share/[...shareId]/page.tsx @@ -1,6 +1,6 @@ import SharePage from './SharePage'; -export default async function ({ params }: { params: { shareId: string } }) { +export default async function ({ params }: { params: Promise<{ shareId: string }> }) { const { shareId } = await params; return ;