mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
use sendstatus not send
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user