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

Merge branch '17-fix-mongoose-connect-deprecation' into 'develop'

Fix mongoose connection opening

Closes #17

See merge request !6
parents 22e594a8 86057453
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