From 2739950639294f27c4d703726c32521a4bda1082 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Wed, 22 Mar 2023 16:17:50 -0400 Subject: [PATCH] style: fix lint --- lib/schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/schema.js b/lib/schema.js index 73716ca7f20..c501792c529 100644 --- a/lib/schema.js +++ b/lib/schema.js @@ -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);