This commit is contained in:
Belen Curcio
2016-11-01 12:14:37 -03:00
parent f7e408e089
commit f98308212d
+5 -5
View File
@@ -9,12 +9,12 @@ if (enabled('talk:db')) {
}
try {
mongoose.connect(process.env.TALK_MONGO_URL, (err, res) => {
if (err) throw err;
console.log('Connected to MongoDB!');
})
mongoose.connect(process.env.TALK_MONGO_URL, (err, res) => {
if (err) throw err;
console.log('Connected to MongoDB!');
})
} catch (err) {
console.log('Cannot stablish a connection with MongoDB');
console.log('Cannot stablish a connection with MongoDB');
}
module.exports = mongoose;