|
@@ -586,7 +586,7 @@ class PageService {
|
|
|
// reduce parent's descendantCount
|
|
// reduce parent's descendantCount
|
|
|
// see: https://dev.growi.org/62149d019311629d4ecd91cf#Handling%20of%20descendantCount%20in%20case%20of%20unexpected%20process%20interruption
|
|
// see: https://dev.growi.org/62149d019311629d4ecd91cf#Handling%20of%20descendantCount%20in%20case%20of%20unexpected%20process%20interruption
|
|
|
const nToReduceForOperationInterruption = -1;
|
|
const nToReduceForOperationInterruption = -1;
|
|
|
- await Page.incrementDescendantCountOfPageIds([page.parent], nToReduceForOperationInterruption);
|
|
|
|
|
|
|
+ await Page.incrementDescendantCountOfPageIds([renamedPage.parent], nToReduceForOperationInterruption);
|
|
|
|
|
|
|
|
const nToReduce = -1 * ((page.isEmpty ? 0 : 1) + page.descendantCount);
|
|
const nToReduce = -1 * ((page.isEmpty ? 0 : 1) + page.descendantCount);
|
|
|
await this.updateDescendantCountOfAncestors(exParentId, nToReduce, true);
|
|
await this.updateDescendantCountOfAncestors(exParentId, nToReduce, true);
|