const v = require('validator');
module.exports = asyncfunctionminLength(field, value, minNum) {
if (!v.isInt(minNum)) {
throw`Seed in minLength rule for ${field} must be a number.`;
}
if (value.toString().length < parseInt(minNum)) {
returnfalse;
}
returntrue;
};