We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bbdead commit ec722e8Copy full SHA for ec722e8
lib/hook.js
@@ -67,11 +67,11 @@ module.exports = function(sails) {
67
68
req.options.controller = model;
69
req.options.model = model;
70
- req.body = JsonApiService.deserialize(req.body);
71
72
if (sails.controllers[model].update !== undefined) {
73
return sails.controllers[model].update(req, res);
74
} else {
+ req.body = JsonApiService.deserialize(req.body);
75
return BlueprintController.update(req, res);
76
}
77
};
0 commit comments