Skip to content

Commit

Permalink
remove directConnection parameter from mongo connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
IanR01 committed Apr 10, 2024
1 parent e4ec9a4 commit 3b6d77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function getMongoDbConnectionString () {

const useAuth = user && password;

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

const url = getMongoDbConnectionString();
Expand Down

0 comments on commit 3b6d77e

Please sign in to comment.