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