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.

Fixed team user fetch.

Mike Cao36b53775bdd7
diff --git a/src/app/api/teams/[teamId]/users/route.ts b/src/app/api/teams/[teamId]/users/route.ts
index 5ec9435f6..16b50fc7a 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 c06274aa0..548082fb0 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 <SharePage shareId={shareId[0]} />;