From c951bfb32401ee7e21e256bd391230a1cd4278b7 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 2 Jul 2022 16:51:48 -0500 Subject: bump mongodb version --- src/database.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/database.ts b/src/database.ts index 66edeff..b4b6043 100644 --- a/src/database.ts +++ b/src/database.ts @@ -198,7 +198,9 @@ async function connect(): Promise { return console.warn('Warning: db_uri was not found in .env. Features that utilize the database such as leaderboards won\'t work.') if (!process.env.db_name) return console.warn('Warning: db_name was not found in .env. Features that utilize the database such as leaderboards won\'t work.') - client = await MongoClient.connect(process.env.db_uri) + client = await MongoClient.connect(process.env.db_uri, { + maxConnecting: 100 + }) database = client.db(process.env.db_name) memberLeaderboardsCollection = database.collection('member-leaderboards') profileLeaderboardsCollection = database.collection('profile-leaderboards') -- cgit