0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 13:02:45 +00:00

MOved the brews search to its own file, writing out more tests

This commit is contained in:
Scott Tolksdorf
2017-01-27 10:36:07 -05:00
parent 2f82d3875e
commit 8e58e5aca9
6 changed files with 180 additions and 109 deletions

View File

@@ -24,5 +24,13 @@ module.exports = {
);
});
},
close : ()=>{
return new Promise((resolve, reject) => {
mongoose.connection.close(()=>{
log.info('DB connection closed.');
return resolve();
});
});
},
instance : mongoose
}