Fix incorrect variable name in updateAttributes

This commit is contained in:
Ritchie Martori 2013-06-21 15:01:40 -07:00
parent 0a3e642c9e
commit ff37cc001a
1 changed files with 1 additions and 1 deletions

View File

@ -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!'));
}