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.

fix zod validation for revenue report

Francis Cao089b4fee69a4
diff --git a/src/app/api/reports/revenue/route.ts b/src/app/api/reports/revenue/route.ts
index f8f4041fd..13a34f382 100644
--- a/src/app/api/reports/revenue/route.ts
+++ b/src/app/api/reports/revenue/route.ts
@@ -29,6 +29,7 @@ export async function GET(request: Request) {
export async function POST(request: Request) {
const schema = z.object({
+ currency: z.string(),
...reportParms,
timezone: timezoneParam,
});