This commit is contained in:
CorwinDev committed 2022-07-30 16:19:58 +02:00
1 parent 900a4f65da
commit be8c70ab94
7 files changed
+118 -13

No files matched your search

+3 -1
View File
@@ -3,10 +3,12 @@ const bot = require('./bot');
const website = require('./website');
// Import config and export
const config = require('./config');
const mongoose = require('mongoose');
// Connect to mongoDB
try {
mongoose.connect(config.mongoDB.url);
mongoose.connect(config.mongodb);
} catch (err) {
console.log(err);
console.log('Error connecting to mongoDB');
process.exit(1);
}