mirror of
https://github.com/umami-software/umami.git
synced 2026-02-03 20:27:13 +01:00
remove shareId from website POST
This commit is contained in:
parent
1229663814
commit
1174ce89bc
1 changed files with 1 additions and 3 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue