Skip to content

Commit 9c622ef

Browse files
committed
Add maxTimeMS to filter list
1 parent 982755c commit 9c622ef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spec/GridFSBucketStorageAdapter.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ describe_only_db('mongo')('GridFSBucket', () => {
2424
const databaseURI = 'mongodb://localhost:27017/parse';
2525
const gfsAdapter = new GridFSBucketAdapter(databaseURI, {
2626
retryWrites: true,
27-
// these are not supported by mongo
27+
// these are not supported by the mongo client
2828
enableSchemaHooks: true,
2929
schemaCacheTtl: 5000,
30+
maxTimeMS: 30000,
3031
});
3132

3233
const db = await gfsAdapter._connect();

src/Adapters/Files/GridFSBucketAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class GridFSBucketAdapter extends FilesAdapter {
3535
useUnifiedTopology: true,
3636
};
3737
const mongoOptions = { ...databaseOptions };
38-
for (const key of ['enableSchemaHooks', 'schemaCacheTtl']) {
38+
for (const key of ['enableSchemaHooks', 'schemaCacheTtl', 'maxTimeMS']) {
3939
delete mongoOptions[key];
4040
}
4141
this._mongoOptions = Object.assign(defaultMongoOptions, mongoOptions);

0 commit comments

Comments
 (0)