We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0acff8 commit 1f056d0Copy full SHA for 1f056d0
src/mongo_client.ts
@@ -484,7 +484,7 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> implements
484
485
/** @internal */
486
get timeoutMS(): number | undefined {
487
- return this.options.timeoutMS;
+ return this.s.options.timeoutMS;
488
}
489
490
/**
@@ -693,7 +693,7 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> implements
693
694
// Default to db from connection string if not provided
695
if (!dbName) {
696
- dbName = this.options.dbName;
+ dbName = this.s.options.dbName;
697
698
699
// Copy the options and add out internal override of the not shared flag
0 commit comments