diff --git a/config/lib/mongoose.js b/config/lib/mongoose.js index 9bb0b74a0e..76cd2e9557 100644 --- a/config/lib/mongoose.js +++ b/config/lib/mongoose.js @@ -34,3 +34,8 @@ module.exports.connect = function(cb) { } }); }; + +module.exports.disconnect = function() { + mongoose.disconnect(); + console.info(chalk.yellow('Disconnected from MongoDB.')); +};