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

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

@@ -1149,7 +1149,7 @@ export default (crowi: Crowi): any => {
     if (shouldPlusUpdateDescCount) {
       await crowi.pageService.updateDescendantCountOfAncestors(newPageData._id, 1, false);
       const newDescendantCount = await this.recountDescendantCount(newPageData._id);
-      await this.updateOne({  }, { descendantCount: newDescendantCount });
+      await this.updateOne({ _id: newPageData._id }, { descendantCount: newDescendantCount });
     }
     else if (shouldMinusUpdateDescCount) {
       await crowi.pageService.updateDescendantCountOfAncestors(newPageData._id, -1, false);