Retun err for UPSERT if the connector returns err

This commit is contained in:
Amir Jafarian 2016-05-31 22:17:23 -04:00
parent 5b025075dc
commit 82546fdf47
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,