Fix (CRUD update) validate id
This commit is contained in:
parent
833df49173
commit
f33c8da55d
@ -260,6 +260,9 @@ export const update = ({ server, model, prefix = '/', config }) => {
|
||||
config: _.defaultsDeep(config, {
|
||||
validate: {
|
||||
payload: joi.object().required(),
|
||||
params: joi.object().keys({
|
||||
id: joi.any(),
|
||||
}),
|
||||
},
|
||||
}),
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user