Make journey report steps optional

This commit is contained in:
Maxime-J 2025-03-06 15:41:27 +01:00
parent 72ac97c5d9
commit 51f2a1c431

View file

@ -9,8 +9,8 @@ export async function POST(request: Request) {
const schema = z.object({
...reportParms,
steps: z.coerce.number().min(3).max(7),
startStep: z.string(),
endStep: z.string(),
startStep: z.string().optional(),
endStep: z.string().optional(),
});
const { auth, body, error } = await parseRequest(request, schema);