Fix updateAll callback in "transient" connector
Fix the implementation to return an object as the result,
that's the expected API since 04f35b3
.
This commit is contained in:
parent
84448bb0dc
commit
94e6d893a7
|
@ -98,7 +98,7 @@ Transient.prototype.save = function save(model, data, callback) {
|
||||||
Transient.prototype.update =
|
Transient.prototype.update =
|
||||||
Transient.prototype.updateAll = function updateAll(model, where, data, cb) {
|
Transient.prototype.updateAll = function updateAll(model, where, data, cb) {
|
||||||
var count = 0;
|
var count = 0;
|
||||||
this.flush('update', count, cb);
|
this.flush('update', {count: count}, cb);
|
||||||
};
|
};
|
||||||
|
|
||||||
Transient.prototype.updateAttributes = function updateAttributes(model, id, data, cb) {
|
Transient.prototype.updateAttributes = function updateAttributes(model, id, data, cb) {
|
||||||
|
|
Loading…
Reference in New Issue