From 9c7fef578963e714bc3a78b6e1f23dfd573a6fea Mon Sep 17 00:00:00 2001 From: Amir Jafarian Date: Wed, 27 Jan 2016 09:46:35 -0500 Subject: [PATCH] change replace to replaceById --- lib/sql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sql.js b/lib/sql.js index d63bf81..b1366ec 100644 --- a/lib/sql.js +++ b/lib/sql.js @@ -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);