mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
fix bad res.send
This commit is contained in:
@@ -10,8 +10,7 @@ module.exports = SpellingAPIController =
|
||||
if error?
|
||||
logger.err err:error, user_id:req?.params?.user_id, word_count: req?.body?.words?.length, "error processing spelling request"
|
||||
return res.sendStatus(500)
|
||||
# res.send(result)
|
||||
res.writeHead 200
|
||||
res.send(result)
|
||||
|
||||
learn: (req, res, next) ->
|
||||
metrics.inc "spelling-learn", 0.1
|
||||
|
||||
Reference in New Issue
Block a user