Retun err for UPSERT if the connector returns err

This commit is contained in:
Amir Jafarian 2016-06-01 15:55:25 -04:00
parent 7aa9cb357d
commit dddf0ee09a
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,