yohei0125 4 лет назад
Родитель
Сommit
5f29b712e5
1 измененных файлов с 8 добавлено и 1 удалено
  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();
   }