Cleanup
This commit is contained in:
2
node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.js
generated
vendored
2
node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.js
generated
vendored
@@ -14,7 +14,7 @@ module.exports = function cleanModifiedSubpaths(doc, path, options) {
|
||||
}
|
||||
for (const modifiedPath of Object.keys(doc.$__.activePaths.states.modify)) {
|
||||
if (skipDocArrays) {
|
||||
const schemaType = doc.schema.path(modifiedPath);
|
||||
const schemaType = doc.$__schema.path(modifiedPath);
|
||||
if (schemaType && schemaType.$isMongooseDocumentArray) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user