yohei0125 před 4 roky
rodič
revize
5f29b712e5
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. 8 1
      packages/app/src/server/service/page.js

+ 8 - 1
packages/app/src/server/service/page.js

@@ -1036,7 +1036,14 @@ class PageService {
     }
 
     // update descendantCount of all public pages
-    await this.updateSelfAndDescendantCount('/');
+    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();
   }