Skip to content

fix(model): make bulkSave() persist changes that happen in pre('save') middleware #13885

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

Merged
merged 3 commits into from
Sep 25, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #13799

Summary

#13799 points out that property changes in pre('save') hooks don't get saved if you're using bulkSave(). That is inconsistent with plain old save().

Examples

@vkarpov15 vkarpov15 added this to the 7.5.3 milestone Sep 25, 2023
@vkarpov15 vkarpov15 merged commit d8429aa into master Sep 25, 2023
@hasezoey hasezoey deleted the vkarpov15/gh-13799 branch September 25, 2023 16:47
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.

BulkSave existing documents doesn't apply save middleware hook updates
3 participants