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([
3737 [ 'Db' , ( ) => new mongodbLegacy . Db ( client , 'animals' ) ] ,
3838 [ 'FindCursor' , ( ) => new mongodbLegacy . FindCursor ( client , namespace ) ] ,
3939 [ '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+ ] ,
4548 [ 'ListCollectionsCursor' , ( ) => new mongodbLegacy . ListCollectionsCursor ( db , { } ) ] ,
4649 [ 'ListIndexesCursor' , ( ) => new mongodbLegacy . ListIndexesCursor ( collection ) ] ,
4750 [ 'MongoClient' , ( ) => new mongodbLegacy . MongoClient ( iLoveJs ) ] ,
You can’t perform that action at this time.
0 commit comments