Merge pull request #957 from strongloop/upsert_err

Retun err for UPSERT if the connector returns err
This commit is contained in:
Amir-61 2016-06-02 08:37:02 -04:00
commit 534a0e5892
1 changed files with 1 additions and 0 deletions

View File

@ -566,6 +566,7 @@ DataAccessObject.upsert = function(data, options, cb) {
});
}
function done(err, data, info) {
if (err) return cb(err);
var context = {
Model: Model,
data: data,