Skip to content

Commit fedb381

Browse files
TylerBrockflovilmart
authored andcommitted
Remove warning for invalid MongoDB driver option (#3952)
1 parent d094a70 commit fedb381

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export class MongoStorageAdapter {
9898

9999
// MaxTimeMS is not a global MongoDB client option, it is applied per operation.
100100
this._maxTimeMS = mongoOptions.maxTimeMS;
101+
delete mongoOptions.maxTimeMS;
101102
}
102103

103104
connect() {

0 commit comments

Comments
 (0)