فهرست منبع

change page to renamedPage

yohei0125 3 سال پیش
والد
کامیت
b884f6b48e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/app/src/server/service/page.ts

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

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