mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
use sendstatus not send
This commit is contained in:
parent
a7185c412c
commit
726afb6b90
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ module.exports = SpellingAPIController =
|
||||||
logger.log token: req?.params?.user_id, word: req?.body?.word, "learning word"
|
logger.log token: req?.params?.user_id, word: req?.body?.word, "learning word"
|
||||||
SpellingAPIManager.learnWord req.params.user_id, req.body, (error, result) ->
|
SpellingAPIManager.learnWord req.params.user_id, req.body, (error, result) ->
|
||||||
return next(error) if error?
|
return next(error) if error?
|
||||||
res.send(200)
|
res.sendStatus(200)
|
||||||
next()
|
next()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue