mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
use res.sendStatus not re.send
This commit is contained in:
parent
5b0f69a50d
commit
a7185c412c
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ module.exports =
|
|||
numberOfSuggestions = body?.misspellings[0]?.suggestions?.length
|
||||
if numberOfSuggestions > 10
|
||||
logger.log "health check passed"
|
||||
res.send 200
|
||||
res.sendStatus 200
|
||||
else
|
||||
logger.err body:body, numberOfSuggestions:numberOfSuggestions, "health check failed"
|
||||
res.send 500
|
||||
res.sendStatus 500
|
||||
|
|
Loading…
Reference in a new issue