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.

Remove enddate check.

Brian Caoc67deb68e6e4
diff --git a/src/pages/api/realtime/[id].ts b/src/pages/api/realtime/[id].ts
index ab7bb4060..5b1e1e057 100644
--- a/src/pages/api/realtime/[id].ts
+++ b/src/pages/api/realtime/[id].ts
@@ -11,12 +11,10 @@ export interface RealtimeRequestQuery {
startAt: number;
}
-const currentDate = new Date().getTime();
-
const schema = {
GET: yup.object().shape({
id: yup.string().uuid().required(),
- startAt: yup.number().integer().max(currentDate).required(),
+ startAt: yup.number().integer().required(),
}),
};