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:
Amir-61 2016-06-01 15:51:35 -04:00
commit 8f347fbacb
1 changed files with 1 additions and 0 deletions

View File

@ -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,