Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Oct 4, 2020
1 parent 037eb14 commit e037a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ Schema.prototype.path = function(path, obj) {
schemaType.schema.subpaths[key].$isUnderneathDocArray = true;
}
for (const key of Object.keys(schemaType.schema.singleNestedPaths)) {
if (typeof schema.singleNestedPaths[cleanPath] !== 'object') {
if (typeof schemaType.schema.singleNestedPaths[cleanPath] !== 'object') {
continue;
}
this.subpaths[path + '.' + key] = schemaType.schema.singleNestedPaths[key];
Expand Down

0 comments on commit e037a95

Please sign in to comment.