Fix (CRUD update) validate id

This commit is contained in:
Joey Baker 2016-09-04 16:37:43 -07:00
parent 833df49173
commit f33c8da55d

View File

@ -260,6 +260,9 @@ export const update = ({ server, model, prefix = '/', config }) => {
config: _.defaultsDeep(config, { config: _.defaultsDeep(config, {
validate: { validate: {
payload: joi.object().required(), payload: joi.object().required(),
params: joi.object().keys({
id: joi.any(),
}),
}, },
}), }),
}); });