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.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Fix insight.
Brian Cao75861bda6183
diff --git a/src/pages/api/reports/insights.ts b/src/pages/api/reports/insights.tsindex d10eba3fb..4d17c9220 100644--- a/src/pages/api/reports/insights.ts+++ b/src/pages/api/reports/insights.ts@@ -38,18 +38,14 @@ const schema = {).min(1).required(),- filters: yup- .array()- .of(- yup.object().shape({- name: yup.string().required(),- type: yup.string().required(),- filter: yup.string().required(),- value: yup.string().required(),- }),- )- .min(1)- .required(),+ filters: yup.array().of(+ yup.object().shape({+ name: yup.string().required(),+ type: yup.string().required(),+ filter: yup.string().required(),+ value: yup.string().required(),+ }),+ ),groups: yup.array().of(yup.object().shape({name: yup.string().required(),