mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 07:53:38 +02:00
Fix express warning for deprecated res.json(stat) message
This commit is contained in:
@@ -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
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user