fix(core): update

This commit is contained in:
Philipp Kunz 2020-02-08 14:37:44 +00:00
parent 6eb43a4b9f
commit cea6c662ac

View File

@ -54,7 +54,8 @@ export class SmartdataDb {
}
console.log(`connection Url: ${finalConnectionUrl}`);
this.mongoDbClient = await plugins.mongodb.MongoClient.connect(finalConnectionUrl, {
useNewUrlParser: true
useNewUrlParser: true,
useUnifiedTopology: true
});
this.mongoDb = this.mongoDbClient.db(this.smartdataOptions.mongoDbName);
this.status = 'connected';