Merge pull request #1378 from strongloop/fix/use-correct-data-replaceCb

Use correct data on replace callback
This commit is contained in:
Kevin Delisle 2017-05-18 17:25:15 -04:00 committed by GitHub
commit 790ccc3961
1 changed files with 3 additions and 1 deletions

View File

@ -3059,7 +3059,9 @@ DataAccessObject.replaceById = function(id, data, options, cb) {
function replaceCallback(err, data) {
if (err) return cb(err);
if (typeof connector.generateContextData === 'function') {
context = connector.generateContextData(context, data);
}
var ctx = {
Model: Model,
hookState: hookState,