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) {
|
function done(err, data, info) {
|
||||||
|
if (err) return cb(err);
|
||||||
var context = {
|
var context = {
|
||||||
Model: Model,
|
Model: Model,
|
||||||
data: data,
|
data: data,
|
||||||
|
|
Loading…
Reference in New Issue