Skip to content
Snippets Groups Projects
Commit 86057453 authored by Markus Grigull's avatar Markus Grigull
Browse files

Fix mongoose connection opening

parent 22e594a8
No related branches found
No related tags found
1 merge request!6Fix mongoose connection opening
......@@ -75,7 +75,7 @@ app.use(cors());
// connect to database
mongoose.Promise = global.Promise;
mongoose.connect(config.databaseURL + config.databaseName).then(() => {
mongoose.connect(config.databaseURL + config.databaseName, { useMongoClient: true }).then(() => {
logger.info('Connected to database ' + config.databaseURL + config.databaseName);
}, (err) => {
logger.error('Unable to connect to database \'' + config.databaseURL + config.databaseName + '\'');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment