add minute to UNIT_TYPES. Fix yup validations when all-time filter returne start date = end date
This commit is contained in:
1 parent
64d9a196cc
commit
fde2be4900
7 files changed
+7
-7
No files matched your search
@@ -21,7 +21,7 @@ const schema = {
|
||||
GET: yup.object().shape({
|
||||
websiteId: yup.string().uuid().required(),
|
||||
startAt: yup.number().integer().required(),
|
||||
endAt: yup.number().integer().moreThan(yup.ref('startAt')).required(),
|
||||
endAt: yup.number().integer().min(yup.ref('startAt')).required(),
|
||||
unit: UnitTypeTest,
|
||||
timezone: TimezoneTest,
|
||||
url: yup.string(),
|
||||
|
||||
Reference in new issue
Block a user