Remove enddate check.

This commit is contained in:
Brian Cao 2023-08-25 11:33:30 -07:00
parent fe56ed35d5
commit c67deb68e6

View File

@ -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(),
}),
};