-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
During the server side validation of the user data input...it return the response::
` const result = Joi.validate(req.body, schema);
if (result.error) {
return res.status(400).json(result.error);
}
if (!req.value) { req.value = {}; }
req.value['body'] = result.value;
next();
`
response is received but the user is saved in the DB with corrupted data.
would like to contribute. :-)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels