Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handler (request, reply) {
return Health.checkup()
.then((status) => {
const statusCode = _.find(status, (check) => !check.is_healthy) ? 503 : 200
return reply(null, { status }).code(statusCode)
})
}