2
0
yohei0125 4 жил өмнө
parent
commit
5f29b712e5

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

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