Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Make journey report steps optional

Maxime-J51f2a1c43165
diff --git a/src/app/api/reports/journey/route.ts b/src/app/api/reports/journey/route.ts
index a1bc62901..19ad98fa7 100644
--- a/src/app/api/reports/journey/route.ts
+++ b/src/app/api/reports/journey/route.ts
@@ -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);