This commit is contained in:
Francis Cao
2023-08-25 11:35:06 -07:00
3 changed files with 4 additions and 6 deletions

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