Merge pull request #957 from strongloop/upsert_err
Retun err for UPSERT if the connector returns err
This commit is contained in:
commit
534a0e5892
|
@ -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