Skip to content

Commit

Permalink
initial setup for db
Browse files Browse the repository at this point in the history
relates #16
  • Loading branch information
heathercoraje committed Oct 3, 2017
1 parent 898cf04 commit 5770008
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions database/db_build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const career = require('./career_model.js');
const db = require('./db_connection.js');
const careers = require('./seed_data.js');
const mongoose = require('mongoose');

db.once('open', () => {
console.log('we are connected to DB');
Expand All @@ -20,7 +21,7 @@ db.once('open', () => {
});
}

function exit() {
function exit () {
mongoose.disconnect();
}
})
});

0 comments on commit 5770008

Please sign in to comment.