test: should update json file

This commit is contained in:
Typicode
2016-05-15 16:31:48 +02:00
parent 2ce4590e93
commit 71b6c95b4a
5 changed files with 28 additions and 10 deletions

View File

@ -246,7 +246,7 @@ module.exports = function (db, name) {
var resource = db.get(name).removeById(utils.toNative(req.params.id)).value()
// Remove dependents documents
var removable = db._.getRemovable(db.state())
var removable = db._.getRemovable(db.getState())
_.each(removable, function (item) {
db.get(item.name).removeById(item.id).value()