src/routes/middleware/healthChecks.js
Function exports
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (app) {
const mongooseConnection = {
name: 'Mongoose Connection',
checkHealth: () => {
const mongooseConnectionOkay = mongoose.connection.readyState > 0;