mirror of
https://github.com/wassname/talk.git
synced 2026-07-18 12:40:13 +08:00
Replacing res.send by res.json
This commit is contained in:
@@ -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));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user