Browse Source

modify comment

yohei0125 4 years ago
parent
commit
ec2395ba7d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/server/models/page.ts

+ 1 - 1
packages/app/src/server/models/page.ts

@@ -375,7 +375,7 @@ schema.statics.getAggrConditionForPageWithProvidedPathAndDescendants = function(
   ];
 };
 
-// update descendantCount of ancestors of path by count
+// update descendantCount of ancestors of the provided path by count
 schema.statics.recountDescendantCountOfAncestors = async function(path:string, count: number):Promise<void> {
   const paths = collectAncestorPaths(path);
   const pages = await this.aggregate([{ $match: { path: { $in: paths } } }]);