Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Mar 22, 2023
1 parent bbec186 commit 2739950
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 @@ -2224,7 +2224,7 @@ Schema.prototype.virtual = function(name, options) {
if (this.paths[cur] == null) {
continue;
}

if (this.paths[cur].$isMongooseDocumentArray || this.paths[cur].$isSingleNested) {
const remnant = parts.slice(i + 1).join('.');
this.paths[cur].schema.virtual(remnant, options);
Expand Down

0 comments on commit 2739950

Please sign in to comment.