Add stricter tests

This commit is contained in:
typicode
2016-12-06 23:43:26 +01:00
parent f2f96514e5
commit 46a5259584
2 changed files with 9 additions and 3 deletions

View File

@ -253,6 +253,7 @@ module.exports = (db, name) => {
function update (req, res, next) {
const id = req.params.id
let chain = db.get(name)
console.log(req.body)
chain = req.method === 'PATCH'
? chain.updateById(id, req.body)