소스 검색

nonEmptyAncestorIds -> ancestorPageIds

Shun Miyazawa 2 년 전
부모
커밋
fd6cc8fe3f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      apps/app/src/server/service/page/index.ts

+ 2 - 2
apps/app/src/server/service/page/index.ts

@@ -3955,8 +3955,8 @@ class PageService implements IPageService {
       .query
       .exec();
 
-    const nonEmptyAncestorIds = ancestorPages.map(page => page._id);
-    await Page.updateMany({ _id: { $in: nonEmptyAncestorIds } }, { $unset: { ttlTimestamp: true } });
+    const ancestorPageIds = ancestorPages.map(page => page._id);
+    await Page.updateMany({ _id: { $in: ancestorPageIds } }, { $unset: { ttlTimestamp: true } });
   }
 
   /**