forked from joegoldbeck/mongoose-encryption
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix errors with encrypted subdoc arrays on Mongoose v6
As of Mongoose v6, encrypted subdocument arrays lead to the following error when updating an existing document: > MongoServerError: Updating the path '…' would create a conflict at '…' This change circumvents the problem by marking the corresponding schema paths as unmodified (which should be safe, since those encrypted fields are not meant to be stored anyway). Fixes joegoldbeck#105
- Loading branch information
Markus Dolic
committed
Aug 12, 2022
1 parent
c3dd81a
commit 6400629
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters