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

Use process.nextTick before wrapping Collection (mongodb v6.10.0) #471

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

hansott
Copy link
Collaborator

@hansott hansott commented Dec 5, 2024

exports.Collection = void 0;
const collection_1 = require("./collection");
Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return collection_1.Collection; } });

For some reason the Collection is undefined in our callback, let's wait until the next tick to grab a reference to Collection.

exports.Collection = void 0;
const collection_1 = require("./collection");
Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return collection_1.Collection; } });

For some reason the Collection is undefined in our callback, let's wait
until the next tick to grab a reference to Collection.
@hansott hansott marked this pull request as draft December 5, 2024 15:54
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@hansott hansott marked this pull request as ready for review December 5, 2024 17:08
@hansott hansott changed the title Use process.nextTick before wrapping Collection Use process.nextTick before wrapping Collection (mongodb v6.10.0) Dec 6, 2024
@hansott hansott merged commit bbbad01 into main Dec 6, 2024
11 checks passed
@hansott hansott deleted the patch-mongodb-6-10 branch December 6, 2024 09:27
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.

None yet

2 participants