Replacing res.send by res.json

This commit is contained in:
Belen Curcio
2016-12-08 13:43:21 -03:00
parent ebf9754287
commit c1ba2d432e
+1 -1
View File
@@ -85,7 +85,7 @@ router.put('/:asset_id/settings', (req, res, next) => {
// Override the settings for the asset.
Asset
.overrideSettings(req.params.asset_id, req.body)
.then(({settings}) => res.status(200).send({settings}))
.then(({settings}) => res.json({settings}))
.catch((err) => next(err));
});