Fix: PUT requires a payload to work #7

Merged
joeybaker merged 1 commits from require-payload-on-put into master 2016-07-08 12:47:40 +00:00
Showing only changes of commit fee846eb4a - Show all commits

View File

@ -202,7 +202,11 @@ export const update = (server, model) => {
reply(instance);
},
config: defaultConfig,
config: _.defaultsDeep({
validate: {
payload: joi.object().required(),
},
}, defaultConfig),
});
};