tests done except for sample and samples component
This commit is contained in:
@ -107,7 +107,7 @@ export class ValidationService {
|
||||
}
|
||||
|
||||
max(data, max) {
|
||||
const {ignore, error} = Joi.number().allow('').min(max).validate(data);
|
||||
const {ignore, error} = Joi.number().allow('').max(max).validate(data);
|
||||
if (error) {
|
||||
return {ok: false, error: `must not be above ${max}`};
|
||||
}
|
||||
|
Reference in New Issue
Block a user