Explorar el Código

nonEmptyAncestorIds -> ancestorPageIds

Shun Miyazawa hace 2 años
padre
commit
fd6cc8fe3f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 } });
   }
 
   /**