mirror of
https://github.com/yusufipk/RememberMe.git
synced 2026-09-11 10:56:07 +00:00
change(person/route) put, takes previous values if not specified by user
This commit is contained in:
@@ -136,7 +136,7 @@ function validatePerson(value) {
|
||||
tags: Joi.array().max(6),
|
||||
createdAt: Joi.string().max(25),
|
||||
});
|
||||
return schema.validate(value);
|
||||
return schema.validate(value, { allowUnknown: true });
|
||||
}
|
||||
|
||||
exports.Person = Person;
|
||||
|
||||
Reference in New Issue
Block a user