Merge pull request #518 from strongloop/fix/transient-connector-updateAll-result
Fix updateAll callback in "transient" connector
This commit is contained in:
commit
112f2bd652
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue