Remove enddate check.
This commit is contained in:
@@ -11,12 +11,10 @@ export interface RealtimeRequestQuery {
|
|||||||
startAt: number;
|
startAt: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentDate = new Date().getTime();
|
|
||||||
|
|
||||||
const schema = {
|
const schema = {
|
||||||
GET: yup.object().shape({
|
GET: yup.object().shape({
|
||||||
id: yup.string().uuid().required(),
|
id: yup.string().uuid().required(),
|
||||||
startAt: yup.number().integer().max(currentDate).required(),
|
startAt: yup.number().integer().required(),
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user