fix raqia back compat

This commit is contained in:
Josh Harvey 2016-05-13 20:24:28 +03:00
parent 6cfe2259cc
commit ca161fb9f2
2 changed files with 4 additions and 4 deletions

View file

@ -240,7 +240,7 @@ function phoneCode (req, res) {
function updatePhone (req, res) {
const notified = req.query.notified === 'true'
return plugins.updatePhone(session(req), req.body, notified)
.then(code => res.json(200))
.then(res => res.json(res))
.catch(err => {
logger.error(err)
res.sendStatus(500)