From 36b53775bdd79b8d8920025a92a9f445e7a859f0 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Fri, 14 Feb 2025 03:09:18 -0800 Subject: [PATCH] Fixed team user fetch. --- src/app/api/teams/[teamId]/users/route.ts | 1 + src/app/share/[...shareId]/page.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 ;