use res.sendStatus not re.send

This commit is contained in:
Henry Oswald 2015-03-03 14:45:32 +00:00
parent 5b0f69a50d
commit a7185c412c

View file

@ -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