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

+ 1 - 1
packages/app/src/server/service/page.ts

@@ -2371,7 +2371,7 @@ class PageService {
       // then calculate inc
       const pageAfterUpdatingDescendantCount = await Page.findByIdAndViewer(page._id, user);
       if (pageAfterUpdatingDescendantCount == null) {
-        throw Error('Failed to fetch page after updating descendantCount');
+        throw Error('Page not found after updating descendantCount');
       }
 
       const exDescendantCount = page.descendantCount;