Przeglądaj źródła

Removed unnecessary code

Taichi Masuyama 4 lat temu
rodzic
commit
a1d4f9e0c0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/app/src/server/models/page.ts

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

@@ -818,7 +818,7 @@ schema.statics.removeLeafEmptyPagesRecursively = async function(pageId: ObjectId
     if (!page.isEmpty) {
       return pageIds;
     }
-    console.log(await self.find({ _id: { $ne: childPage?._id }, parent: page._id }));
+
     const isChildrenOtherThanTargetExist = await self.exists({ _id: { $ne: childPage?._id }, parent: page._id });
     if (isChildrenOtherThanTargetExist) {
       return pageIds;