Fix express warning for deprecated res.json(stat) message

This commit is contained in:
Vishal Banthia
2015-12-07 23:03:38 +09:00
parent 96494247bb
commit 25cee263b2
3 changed files with 22 additions and 22 deletions

View File

@@ -26,7 +26,7 @@ function getAccessTokens(req, res) {
})
.catch(function(err) {
log.error('Failed to load tokens: ', err.stack)
res.json(500, {
res.status(500).json({
success: false
})
})