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

avoid double-calling query transform() with findOne() #14240

Merged
merged 2 commits into from
Jan 7, 2024

Conversation

vkarpov15
Copy link
Collaborator

Summary

It looks like with findOne(), findOneAndDelete(), and findOneAndUpdate() Mongoose double calls query transform() functions. This PR removes the obsolete _wrapThunkCallback() function that causes this issue.

Examples

@vkarpov15 vkarpov15 merged commit 889a41d into master Jan 7, 2024
34 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-14236 branch January 7, 2024 16:57
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