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(model): avoid returning null from bulkSave() if error doesn't have writeErrors property #15323

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

vkarpov15
Copy link
Collaborator

Re: #15314

Summary

Potential edge case that can lead bulkSave() to return null. Not likely because AFAIK MongoBulkWriteError should always have writeErrors property, but I don't think the writeErrors check adds anything here.

Examples

@vkarpov15 vkarpov15 added this to the 8.12.2 milestone Mar 20, 2025
@vkarpov15 vkarpov15 merged commit 3e20a36 into master Mar 21, 2025
75 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-15314 branch March 21, 2025 18:51
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