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.

remove shareId from website POST

Francis Cao1174ce89bc51
diff --git a/src/app/api/websites/route.ts b/src/app/api/websites/route.ts
index dd8e0ffdd..29e799650 100644
--- a/src/app/api/websites/route.ts
+++ b/src/app/api/websites/route.ts
@@ -38,7 +38,6 @@ export async function POST(request: Request) {
const schema = z.object({
name: z.string().max(100),
domain: z.string().max(500),
- shareId: z.string().max(50).nullable().optional(),
teamId: z.uuid().nullable().optional(),
id: z.uuid().nullable().optional(),
});
@@ -49,7 +48,7 @@ export async function POST(request: Request) {
return error();
}
- const { id, name, domain, shareId, teamId } = body;
+ const { id, name, domain, teamId } = body;
if (process.env.CLOUD_MODE && !teamId) {
const account = await fetchAccount(auth.user.id);
@@ -72,7 +71,6 @@ export async function POST(request: Request) {
createdBy: auth.user.id,
name,
domain,
- shareId,
teamId,
};