File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ 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' , ( ) => new mongodbLegacy . GridFSBucket ( db ) . openUploadStream ( 'file' ) ] ,
40+ [ 'GridFSBucketWriteStream' , ( ) => {
41+ const stream = new mongodbLegacy . GridFSBucket ( db ) . openUploadStream ( 'file' )
42+ stream . on ( 'error' , ( ) => { } ) ;
43+ return stream ;
44+ } ] ,
4145 [ 'ListCollectionsCursor' , ( ) => new mongodbLegacy . ListCollectionsCursor ( db , { } ) ] ,
4246 [ 'ListIndexesCursor' , ( ) => new mongodbLegacy . ListIndexesCursor ( collection ) ] ,
4347 [ 'MongoClient' , ( ) => new mongodbLegacy . MongoClient ( iLoveJs ) ] ,
You can’t perform that action at this time.
0 commit comments