mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
replace deprecated res.send(code) with res.sendStatus(code)
This commit is contained in:
parent
21c664b28c
commit
10c3d3eb70
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ module.exports = SpellingAPIController =
|
||||||
SpellingAPIManager.runRequest req.params.user_id, req.body, (error, result) ->
|
SpellingAPIManager.runRequest req.params.user_id, req.body, (error, result) ->
|
||||||
if error?
|
if error?
|
||||||
logger.err err:error, user_id:req?.params?.user_id, word_count: req?.body?.words?.length, "error processing spelling request"
|
logger.err err:error, user_id:req?.params?.user_id, word_count: req?.body?.words?.length, "error processing spelling request"
|
||||||
return res.send(500)
|
return res.sendStatus(500)
|
||||||
res.send(result)
|
res.send(result)
|
||||||
|
|
||||||
learn: (req, res, next) ->
|
learn: (req, res, next) ->
|
||||||
|
|
Loading…
Reference in a new issue