|
|
@@ -637,7 +637,7 @@ class PageService {
|
|
|
this.fixPathsAndDescendantCount(page, user, options, renamedPage, pageOp._id, fromPath, toPath);
|
|
|
}
|
|
|
|
|
|
- async fixPathsAndDescendantCount(page, user, options, renamedPage, pageOpId, fromPath, toPath): Promise<void> {
|
|
|
+ private async fixPathsAndDescendantCount(page, user, options, renamedPage, pageOpId, fromPath, toPath): Promise<void> {
|
|
|
await this.renameSubOperation(page, toPath, user, options, renamedPage, pageOpId);
|
|
|
const ancestorsPaths = this.crowi.pageOperationService.getAncestorsPathsByFromAndToPath(fromPath, toPath);
|
|
|
await this.updateDescendantCountOfPagesWithPaths(ancestorsPaths);
|