Retun err for UPSERT if the connector returns err
This commit is contained in:
parent
7aa9cb357d
commit
dddf0ee09a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue