import {BaseApp} from 'jovo-core';
import {MongoDb, Config} from 'jovo-db-mongodb';
import _get = require('lodash.get');

export class CosmosDb extends MongoDb {
    constructor(config?: Config) {
        super(config);
    }

    install(app: BaseApp) {
        if (_get(app.config, 'db.default')) {
            if (_get(app.config, 'db.default') === 'CosmosDb') {
                app.$db = this;
            }
        } else {
            app.$db = this;
        }
    }
}

import {BaseApp} from 'jovo-core';
import {MongoDb, Config} from 'jovo-db-mongodb';
import _get = require('lodash.get');

export class CosmosDb extends MongoDb {
    constructor(config?: Config) {
        super(config);
    }

    async install(app: BaseApp) {
        await super.install(app);
        if (_get(app.config, 'db.default')) {
            if (_get(app.config, 'db.default') === 'CosmosDb') {
                app.$db = this;
            }
        } else {
            app.$db = this;
        }
    }
}

Add super.install() call to initialize MongoClient
:bug: Add super.install() call to initialize MongoClient

In commit a1dcc99d7409e91d4dcec740639f9483e7195a20 a public MongoDb connection was introcuded which broke this integration. The super.install() fixes that issue
