mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 11:05:36 +01:00
Add website binding to boards with filter and date controls.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d3d86f43fa
commit
f66a508892
5 changed files with 48 additions and 5 deletions
|
|
@ -33,6 +33,7 @@ export async function POST(request: Request) {
|
|||
slug: z.string().max(100),
|
||||
userId: z.uuid().nullable().optional(),
|
||||
teamId: z.uuid().nullable().optional(),
|
||||
parameters: z.object({ websiteId: z.uuid().optional() }).passthrough().optional(),
|
||||
});
|
||||
|
||||
const { auth, body, error } = await parseRequest(request, schema);
|
||||
|
|
@ -50,7 +51,7 @@ export async function POST(request: Request) {
|
|||
const data = {
|
||||
...body,
|
||||
id: uuid(),
|
||||
parameters: {},
|
||||
parameters: body.parameters ?? {},
|
||||
slug: uuid(),
|
||||
userId: !teamId ? auth.user.id : undefined,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue