Fix incorrect variable name in updateAttributes
This commit is contained in:
parent
0a3e642c9e
commit
ff37cc001a
|
@ -245,7 +245,7 @@ Memory.prototype.updateAttributes = function updateAttributes(model, id, data, c
|
|||
var modelData = modelAsString && JSON.parse(modelAsString);
|
||||
|
||||
if(modelData) {
|
||||
this.save(model, merge(base, data), cb);
|
||||
this.save(model, merge(modelData, data), cb);
|
||||
} else {
|
||||
cb(new Error('Could not update attributes. Object with id ' + id + ' does not exist!'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue