Skip to content

Commit e3765ff

Browse files
committed
fix: GridFS file storage breaks on alpha
1 parent c4ce59c commit e3765ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Adapters/Files/GridFSBucketAdapter.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ export class GridFSBucketAdapter extends FilesAdapter {
3434
useNewUrlParser: true,
3535
useUnifiedTopology: true,
3636
};
37-
this._mongoOptions = Object.assign(defaultMongoOptions, mongoOptions);
37+
const _mongoOptions = Object.assign(defaultMongoOptions, mongoOptions);
38+
for (const key of ['enableSchemaHooks', 'schemaCacheTtl', 'maxTimeMS']) {
39+
delete _mongoOptions[key];
40+
}
41+
this._mongoOptions = _mongoOptions;
3842
}
3943

4044
_connect() {

0 commit comments

Comments
 (0)