mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Make journey report steps optional
This commit is contained in:
parent
72ac97c5d9
commit
51f2a1c431
1 changed files with 2 additions and 2 deletions
|
|
@ -9,8 +9,8 @@ export async function POST(request: Request) {
|
||||||
const schema = z.object({
|
const schema = z.object({
|
||||||
...reportParms,
|
...reportParms,
|
||||||
steps: z.coerce.number().min(3).max(7),
|
steps: z.coerce.number().min(3).max(7),
|
||||||
startStep: z.string(),
|
startStep: z.string().optional(),
|
||||||
endStep: z.string(),
|
endStep: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const { auth, body, error } = await parseRequest(request, schema);
|
const { auth, body, error } = await parseRequest(request, schema);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue