bleh commit
diff --git a/src/config/main.d.ts b/src/config/main.d.ts
index 6549234..75eb9e0 100644
--- a/src/config/main.d.ts
+++ b/src/config/main.d.ts
@@ -15,11 +15,9 @@
password: string,
database: string,
host: string,
+ authSource: string
},
baseUrl: string,
- pastebinApiKey: string,
- pastebinUsername: string,
- pastebinPassword: string,
rapidApiKey: string
};
diff --git a/src/utils/database.ts b/src/utils/database.ts
index b0c940e..7230d07 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -16,7 +16,7 @@
// mongodb://emails:SweetLife2023!!@127.0.0.1:28180/saveEmail?retryWrites=true&w=majority
const username = encodeURIComponent(config.mongoOptions.username);
const password = encodeURIComponent(config.mongoOptions.password);
-const mongoClient = new MongoClient(username ? `mongodb://${username}:${password}@${config.mongoOptions.host}?authMechanim=${config.mongoOptions.authMechanism || "DEFAULT"}` : `mongodb://${config.mongoOptions.host}`, {authSource: "admin"});
+const mongoClient = new MongoClient(username ? `mongodb://${username}:${password}@${config.mongoOptions.host}?authMechanim=DEFAULT` : `mongodb://${config.mongoOptions.host}`, {authSource: "admin"});
await mongoClient.connect();
const database = mongoClient.db();