We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Do you want to request a feature or report a bug?
bug
What is the current behavior?
eachAsync does not recognize fn calling reject() without an arg as a Promise rejection.
fn
reject()
If the current behavior is a bug, please provide the steps to reproduce.
const cursor = Model.find({}).cursor(); const fn = new Promise((resolve, reject) => reject()); cursor.eachAsync(fn, err => { console.log('err', err); // undefined });
What is the expected behavior?
Calling reject() should be treated as a Promise rejection.
Please mention your node.js, mongoose and MongoDB version.
node.js: >=6.11.4 mongoose: 4.13.7-pre MongoDB: 3.2.7
The text was updated successfully, but these errors were encountered:
Merge pull request #5875 from ZacharyRSmith/fix/eachAsync
2ecf938
fix: eachAsync - Treat reject() as a Promise rejection (gh-5874)
Fixed by #5875
Sorry, something went wrong.
No branches or pull requests
Do you want to request a feature or report a bug?
bug
What is the current behavior?
eachAsync does not recognize
fn
callingreject()
without an arg as a Promise rejection.If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Calling
reject()
should be treated as a Promise rejection.Please mention your node.js, mongoose and MongoDB version.
node.js: >=6.11.4
mongoose: 4.13.7-pre
MongoDB: 3.2.7
The text was updated successfully, but these errors were encountered: