Merge branch 'main' into development
diff --git a/src/utils/database.ts b/src/utils/database.ts
index 278aa34..49ed6f0 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -9,6 +9,7 @@
const username = encodeURIComponent(config.mongoOptions.username);
const password = encodeURIComponent(config.mongoOptions.password);
+
const mongoClient = new MongoClient(username ? `mongodb://${username}:${password}@${config.mongoOptions.host}?authMechanism=DEFAULT` : `mongodb://${config.mongoOptions.host}`, {authSource: config.mongoOptions.authSource});
await mongoClient.connect();
const database = mongoClient.db();