mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 07:52:06 +00: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"
|
||||
SpellingAPIManager.learnWord req.params.user_id, req.body, (error, result) ->
|
||||
return next(error) if error?
|
||||
res.send(200)
|
||||
res.sendStatus(200)
|
||||
next()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue