Merge pull request #1393 from strongloop/fix/updateAttributes-cb
Fix updateAttributes cb
This commit is contained in:
commit
3a10c77cbd
|
@ -3250,8 +3250,11 @@ function(data, options, cb) {
|
||||||
var typedData = convertSubsetOfPropertiesByType(inst, data);
|
var typedData = convertSubsetOfPropertiesByType(inst, data);
|
||||||
context.data = typedData;
|
context.data = typedData;
|
||||||
|
|
||||||
function updateAttributesCallback(err) {
|
function updateAttributesCallback(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,
|
||||||
data: context.data,
|
data: context.data,
|
||||||
|
|
Loading…
Reference in New Issue