async checkDb() {
        try {
            await Promise.all(Object.keys(this.sequelize.models).map(async modelKey => {
                const Model = this.sequelize.models[modelKey];
                await Model.findAll();
            }));
            return true;
        }
        catch(err) {
            console.log("ERROR", `Database not configured correctly: ${JSON.stringify(err, null, 2)}`);
            return false;
        }
    }
/**
     * Returns if the db is setup correctly
     * This only checks if the models are present.
     * Before calling this, start() has to be called first.
     * @return {Promise<boolean>}
     * @memberof SequelizeLoader
     */
Returns if the db is setup correctly
This only checks if the models are present.
Before calling this, start() has to be called first.
@return {Promise}
@memberof SequelizeLoader
Returns if the db is setup correctly This only checks if the models are present . Before calling this start () has to be called first . @return { Promise } @memberof SequelizeLoader
async checkDb() {
        try {
            await Promise.all(Object.keys(this.sequelize.models).map(async modelKey => {
                const Model = this.sequelize.models[modelKey];
                await Model.findAll();
            }));
            return true;
        }
        catch(err) {
            console.log("ERROR", `Database not configured correctly: ${JSON.stringify(err, null, 2)}`);
            return false;
        }
    }
async checkDb ( ) { try { await Promise . all ( Object . keys ( this . sequelize . models ) . map ( async modelKey => { const Model = this . sequelize . models [ modelKey ] ; await Model . findAll ( ) ; } ) ) ; return true ; } catch ( err ) { console . log ( "ERROR" , ` ${ JSON . stringify ( err , null , 2 ) } ` ) ; return false ; } }
Returns if the db is setup correctly
 This only checks if the models are present.
Returns if the db is setup correctly This only checks if the models are present .