tests done except for sample and samples component

This commit is contained in:
VLE2FE
2020-06-22 10:22:45 +02:00
parent 0d77113704
commit 09598c4ba7
25 changed files with 474 additions and 267 deletions

View File

@ -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}`};
}