change replace to replaceById

This commit is contained in:
Amir Jafarian 2016-01-27 09:46:35 -05:00
parent b16f9e0169
commit 9c7fef5789
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ SQLConnector.prototype.updateAttributes = function(model, id, data, options, cb)
* @param {Function} cb The callback function
* @private
*/
SQLConnector.prototype.replace = function(model, id, data, options, cb) {
SQLConnector.prototype.replaceById = function(model, id, data, options, cb) {
if (!isIdValuePresent(id, cb)) return;
var where = this._buildWhereObjById(model, id, data);
this._replace(model, where, data, options, cb);