Skip to content

Commit 3b6d77e

Browse files
committed
remove directConnection parameter from mongo connection string
1 parent e4ec9a4 commit 3b6d77e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app-init.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function getMongoDbConnectionString () {
5252

5353
const useAuth = user && password;
5454

55-
return `mongodb://${useAuth ? `${user}:${password}@` : ''}${host}:${port}/sessions${authSource ? `?authSource=${authSource}&directConnection=true` : ''}`;
55+
return `mongodb://${useAuth ? `${user}:${password}@` : ''}${host}:${port}/sessions${authSource ? `?authSource=${authSource}` : ''}`;
5656
}
5757

5858
const url = getMongoDbConnectionString();

0 commit comments

Comments
 (0)