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

Upgrade mongodb to 6.3.0 #58

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

markedg
Copy link

@markedg markedg commented Mar 4, 2024

Upgrades the node mongo db driver compatibility to 6.3.0 while maintaining backwards compatibility for mongo 4 and 5.

Includes a small change to the stampede finalize code to prevent null values from being saved.

const finalize = async(err, d) => {
if (err) {
const finalize = async (err, d) => {
if (err !== null && err !== undefined) {
Copy link
Author

Choose a reason for hiding this comment

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

If the err was an empty string, a null value was cached. This happened to us when using got and http2, which does not define a statusMessage and was therefore passing in an empty err string.

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.

1 participant