loopback-connector
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -337,3 +337,3 @@ var util = require('util'); | ||
*/ | ||
SqlConnector.prototype.updateAttributes = function updateAttrs(model, id, data, cb) { | ||
SqlConnector.prototype.updateAttributes = function updateAttributes(model, id, data, cb) { | ||
if (!isIdValuePresent(id, cb)) { | ||
@@ -343,4 +343,6 @@ return; | ||
var idName = this.getDataSource(model).idName(model); | ||
data[idName] = id; | ||
this.save(model, data, cb); | ||
delete data[idName]; | ||
var where = {}; | ||
where[idName] = id; | ||
this.updateAll(model, where, data, cb); | ||
}; | ||
@@ -347,0 +349,0 @@ |
{ | ||
"name": "loopback-connector", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Building blocks for LoopBack connectors", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
49168
551
0