File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,14 @@ const OVERRIDDEN_CLASSES_GETTER = new Map([
37
37
[ 'Db' , ( ) => new mongodbLegacy . Db ( client , 'animals' ) ] ,
38
38
[ 'FindCursor' , ( ) => new mongodbLegacy . FindCursor ( client , namespace ) ] ,
39
39
[ 'GridFSBucket' , ( ) => new mongodbLegacy . GridFSBucket ( db ) ] ,
40
- [ 'GridFSBucketWriteStream' , ( ) => {
41
- const stream = new mongodbLegacy . GridFSBucket ( db ) . openUploadStream ( 'file' )
42
- stream . on ( 'error' , ( ) => { } ) ;
43
- return stream ;
44
- } ] ,
40
+ [
41
+ 'GridFSBucketWriteStream' ,
42
+ ( ) => {
43
+ const stream = new mongodbLegacy . GridFSBucket ( db ) . openUploadStream ( 'file' ) ;
44
+ stream . on ( 'error' , ( ) => { } ) ;
45
+ return stream ;
46
+ }
47
+ ] ,
45
48
[ 'ListCollectionsCursor' , ( ) => new mongodbLegacy . ListCollectionsCursor ( db , { } ) ] ,
46
49
[ 'ListIndexesCursor' , ( ) => new mongodbLegacy . ListIndexesCursor ( collection ) ] ,
47
50
[ 'MongoClient' , ( ) => new mongodbLegacy . MongoClient ( iLoveJs ) ] ,
You can’t perform that action at this time.
0 commit comments