Merge pull request #518 from strongloop/fix/transient-connector-updateAll-result

Fix updateAll callback in "transient" connector
This commit is contained in:
Miroslav Bajtoš 2015-03-20 08:55:54 +01:00
commit 112f2bd652
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ Transient.prototype.save = function save(model, data, callback) {
Transient.prototype.update =
Transient.prototype.updateAll = function updateAll(model, where, data, cb) {
var count = 0;
this.flush('update', count, cb);
this.flush('update', {count: count}, cb);
};
Transient.prototype.updateAttributes = function updateAttributes(model, id, data, cb) {