moving db.close into the parent module

This commit is contained in:
psychobunny
2014-04-14 13:51:45 -04:00
parent df5f3d185a
commit bba3df6802
6 changed files with 18 additions and 15 deletions

View File

@@ -4,10 +4,7 @@ var winston = require('winston');
module.exports = function(db, module) {
var helpers = module.helpers.mongo;
module.close = function() {
db.close();
};
module.searchIndex = function(key, content, id) {
var data = {