WIP -- fix back compat with raqia

This commit is contained in:
Josh Harvey 2016-05-14 02:12:30 +03:00
parent ca161fb9f2
commit 190efd4d70
2 changed files with 5 additions and 3 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(res => res.json(res))
.then(r => res.json(r))
.catch(err => {
logger.error(err)
res.sendStatus(500)