ee-ts-util
Version:
typescript utilities and functions
9 lines • 433 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const healthCheck_1 = require("../healthCheck");
exports.buildMongoHealthCheckAdapter = (connection) => () => {
return connection.collections()
.then((coll) => ({ name: "mongo", status: healthCheck_1.OK }))
.catch((err) => ({ name: "mongo", status: healthCheck_1.FAIL, reason: err.message }));
};
//# sourceMappingURL=healthCheck.js.map