change replace to replaceById
This commit is contained in:
parent
b16f9e0169
commit
9c7fef5789
|
@ -593,7 +593,7 @@ SQLConnector.prototype.updateAttributes = function(model, id, data, options, cb)
|
||||||
* @param {Function} cb The callback function
|
* @param {Function} cb The callback function
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
SQLConnector.prototype.replace = function(model, id, data, options, cb) {
|
SQLConnector.prototype.replaceById = function(model, id, data, options, cb) {
|
||||||
if (!isIdValuePresent(id, cb)) return;
|
if (!isIdValuePresent(id, cb)) return;
|
||||||
var where = this._buildWhereObjById(model, id, data);
|
var where = this._buildWhereObjById(model, id, data);
|
||||||
this._replace(model, where, data, options, cb);
|
this._replace(model, where, data, options, cb);
|
||||||
|
|
Loading…
Reference in New Issue