File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ export class GridFSBucketAdapter extends FilesAdapter {
20
20
super ( ) ;
21
21
this . _databaseURI = mongoDatabaseURI ;
22
22
23
- const defaultMongoOptions = { useNewUrlParser : true } ;
23
+ const defaultMongoOptions = {
24
+ useNewUrlParser : true ,
25
+ useUnifiedTopology : true ,
26
+ } ;
24
27
this . _mongoOptions = Object . assign ( defaultMongoOptions , mongoOptions ) ;
25
28
}
26
29
Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ export class GridStoreAdapter extends FilesAdapter {
21
21
super ( ) ;
22
22
this . _databaseURI = mongoDatabaseURI ;
23
23
24
- const defaultMongoOptions = { useNewUrlParser : true } ;
24
+ const defaultMongoOptions = {
25
+ useNewUrlParser : true ,
26
+ useUnifiedTopology : true ,
27
+ } ;
25
28
this . _mongoOptions = Object . assign ( defaultMongoOptions , mongoOptions ) ;
26
29
}
27
30
You can’t perform that action at this time.
0 commit comments