yohei0125 4 лет назад
Родитель
Сommit
62736ea530
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      packages/app/src/server/service/page.js

+ 7 - 7
packages/app/src/server/service/page.js

@@ -1036,13 +1036,13 @@ class PageService {
     }
 
     // update descendantCount of all public pages
-    // try {
-    //   await this.updateSelfAndDescendantCount('/');
-    //   logger.info('Successfully updated all descendantCountd of public pages.');
-    // }
-    // catch (err) {
-    //   logger.error('updating descendantCount on public pages failed.', err);
-    // }
+    try {
+      await this.updateSelfAndDescendantCount('/');
+      logger.info('Successfully updated all descendantCountd of public pages.');
+    }
+    catch (err) {
+      logger.error('updating descendantCount on public pages failed.', err);
+    }
 
     await this._setIsV5CompatibleTrue();
   }