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 usage get.

Brian Cao0db6ecf243f9
diff --git a/src/pages/api/users/[userId]/usage.ts b/src/pages/api/users/[userId]/usage.ts
index 806b4128c..66e927688 100644
--- a/src/pages/api/users/[userId]/usage.ts
+++ b/src/pages/api/users/[userId]/usage.ts
@@ -24,7 +24,7 @@ export interface UserUsageRequestResponse {
const schema = {
GET: yup.object().shape({
- id: yup.string().uuid().required(),
+ userId: yup.string().uuid().required(),
startAt: yup.number().integer().required(),
endAt: yup.number().integer().min(yup.ref<number>('startAt')).required(),
}),