Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Event Listeners to comply with (new v3 & v4) MongoDB Driver API changes #10004

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

hillct
Copy link

@hillct hillct commented Mar 8, 2021

Listening to events on the DB object is deprecated in v3.x and will be unsupported in v4 of the mongodb drivers. Adjusted remaining listeneers to use the DB client object, as per the MongoDB Driver API docs

Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory.

If you're making a change to documentation, do not modify a .html file directly. Instead find the corresponding .pug file or test case in the test/docs directory.

resolving #9930

Summary

Examples

…e unsupported in v4 of the mongodb drivers. Adjusted remaining listeneers to use the DB client object, as per the MongoDB Driver API docs
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@vkarpov15 vkarpov15 added this to the 5.11.20 milestone Mar 10, 2021
@vkarpov15 vkarpov15 merged commit c9d6c3a into Automattic:master Mar 10, 2021
This was referenced Mar 11, 2021
This was referenced Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants