Merge pull request #954 from strongloop/callback_err_from_connector_UPSERT
Retun err for UPSERT if the connector returns err
This commit is contained in:
commit
8f347fbacb
|
@ -563,6 +563,7 @@ DataAccessObject.upsert = function(data, options, cb) {
|
|||
});
|
||||
}
|
||||
function done(err, data, info) {
|
||||
if (err) return cb(err);
|
||||
var context = {
|
||||
Model: Model,
|
||||
data: data,
|
||||
|
|
Loading…
Reference in New Issue