Server: fix status code when updating/removing a user
This commit is contained in:
parent
66af9ee16d
commit
10431358b2
1 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ function removeUser (req, res, next) {
|
||||||
return next(err)
|
return next(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.type('json').status(204).end()
|
return res.sendStatus(204)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ function updateUser (req, res, next) {
|
||||||
user.save(function (err) {
|
user.save(function (err) {
|
||||||
if (err) return next(err)
|
if (err) return next(err)
|
||||||
|
|
||||||
return res.json('json').status(204).end()
|
return res.sendStatus(204)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue