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 collection.findOne() for saving docs with no changes #13298

Merged
merged 2 commits into from
Apr 20, 2023

Commits on Apr 19, 2023

  1. use collection.findOne() instead of exists

    Handles case where `save()` is called on a document with no changes. This prevents the `findOne` hook from running
    IslandRhythms committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    ba9d74b View commit details
    Browse the repository at this point in the history
  2. remove conflicting test

    since we are implementing a fix that removes exist, this test serves no purpose
    IslandRhythms committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    108215b View commit details
    Browse the repository at this point in the history