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
add missing yup validations.
Brian Cao410f53144100
diff --git a/src/pages/api/users/[userId]/index.ts b/src/pages/api/users/[userId]/index.tsindex ca46ff160..d69cad3c5 100644--- a/src/pages/api/users/[userId]/index.ts+++ b/src/pages/api/users/[userId]/index.ts@@ -27,6 +27,9 @@ const schema = {password: yup.string(),role: yup.string().matches(/admin|user|view-only/i),}),+ DELETE: yup.object().shape({+ userId: yup.string().uuid().required(),+ }),};export default async (diff --git a/src/pages/api/websites/[websiteId]/index.ts b/src/pages/api/websites/[websiteId]/index.tsindex 9154760ec..c60a83998 100644--- a/src/pages/api/websites/[websiteId]/index.ts+++ b/src/pages/api/websites/[websiteId]/index.ts@@ -28,6 +28,9 @@ const schema = {domain: yup.string(),shareId: yup.string().matches(SHARE_ID_REGEX, { excludeEmptyString: true }).nullable(),}),+ DELETE: yup.object().shape({+ websiteId: yup.string().uuid().required(),+ }),};export default async (