mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Fixed validation for journey report.
This commit is contained in:
parent
e015ce8779
commit
96138a39a2
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ import { reportParms } from '@/lib/schema';
|
|||
export async function POST(request: Request) {
|
||||
const schema = z.object({
|
||||
...reportParms,
|
||||
steps: z.number().min(3).max(7),
|
||||
steps: z.coerce.number().min(3).max(7),
|
||||
startStep: z.string(),
|
||||
endStep: z.string(),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue