Skip to content

Commit 3d32864

Browse files
author
Thomas Reggi
committed
double positive :(
1 parent 65d1ccf commit 3d32864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/sdam/topology_description.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class TopologyDescription {
152152
serverDescriptions.set(address, serverDescription);
153153
const isReplicaSet = this.options.replicaSet || this.options.setName || this.options.rs_name;
154154
// _directConnection is used to pass in the authored directConnection and not get the default
155-
const isDirectConnection = this.options._directConnection === false;
155+
const isDirectConnection = this.options._directConnection === true;
156156
if (serverType === ServerType.Mongos && !isReplicaSet && !isDirectConnection) {
157157
return new TopologyDescription(
158158
TopologyType.Sharded,

0 commit comments

Comments
 (0)