Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions spec/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ if (process.env.PARSE_SERVER_TEST_DB === 'postgres') {
databaseAdapter = new MongoStorageAdapter({
uri: mongoURI,
collectionPrefix: 'test_',
mongoOptions: {
enableSchemaHooks: true,
},
});
}

Expand Down
1 change: 1 addition & 0 deletions src/Controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export function getFilesController(options: ParseServerOptions): FilesController
throw 'When using an explicit database adapter, you must also use an explicit filesAdapter.';
}
const filesControllerAdapter = loadAdapter(filesAdapter, () => {
delete databaseOptions.enableSchemaHooks;
return new GridFSBucketAdapter(databaseURI, databaseOptions, fileKey);
});
return new FilesController(filesControllerAdapter, appId, {
Expand Down