Parcourir la source

update descendantCount

yohei0125 il y a 4 ans
Parent
commit
341ba5589d
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      packages/app/src/server/service/page.js

+ 2 - 0
packages/app/src/server/service/page.js

@@ -1035,6 +1035,8 @@ class PageService {
       throw err;
       throw err;
     }
     }
 
 
+    // update descendantCount of all public pages
+    await this.updateSelfAndDescendantCount('/');
     await this._setIsV5CompatibleTrue();
     await this._setIsV5CompatibleTrue();
   }
   }