diff --git a/src/index.ts b/src/index.ts index 04c4226aa1..fe5c4b9448 100644 --- a/src/index.ts +++ b/src/index.ts @@ -110,13 +110,9 @@ async function init(): Promise { // Try to connect to MongoDB let mongoDBLogger = new Logger('MongoDB'); - try { - const db = require('./db/mongodb').default; - mongoDBLogger.info('Successfully connected'); - db.close(); - } catch (e) { - throw e; - } + const db = require('./db/mongodb').default; + mongoDBLogger.info('Successfully connected'); + db.close(); return config; }