From c1ba2d432ef7965b537fa00301ad74858cfe1b02 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 8 Dec 2016 13:43:21 -0300 Subject: [PATCH] Replacing res.send by res.json --- routes/api/asset/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/asset/index.js b/routes/api/asset/index.js index 4ec60e453..2384ce416 100644 --- a/routes/api/asset/index.js +++ b/routes/api/asset/index.js @@ -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)); });