Merge pull request #1378 from strongloop/fix/use-correct-data-replaceCb
Use correct data on replace callback
This commit is contained in:
commit
790ccc3961
|
@ -3059,7 +3059,9 @@ DataAccessObject.replaceById = function(id, data, options, cb) {
|
||||||
|
|
||||||
function replaceCallback(err, data) {
|
function replaceCallback(err, data) {
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
|
if (typeof connector.generateContextData === 'function') {
|
||||||
|
context = connector.generateContextData(context, data);
|
||||||
|
}
|
||||||
var ctx = {
|
var ctx = {
|
||||||
Model: Model,
|
Model: Model,
|
||||||
hookState: hookState,
|
hookState: hookState,
|
||||||
|
|
Loading…
Reference in New Issue