Remove warning for invalid MongoDB driver option (#3952)
This commit is contained in:
committed by
Florent Vilmart
parent
d094a70a3b
commit
fedb381925
@@ -98,6 +98,7 @@ export class MongoStorageAdapter {
|
|||||||
|
|
||||||
// MaxTimeMS is not a global MongoDB client option, it is applied per operation.
|
// MaxTimeMS is not a global MongoDB client option, it is applied per operation.
|
||||||
this._maxTimeMS = mongoOptions.maxTimeMS;
|
this._maxTimeMS = mongoOptions.maxTimeMS;
|
||||||
|
delete mongoOptions.maxTimeMS;
|
||||||
}
|
}
|
||||||
|
|
||||||
connect() {
|
connect() {
|
||||||
|
|||||||
Reference in New Issue
Block a user