Преглед изворни кода

add wip getAncestorsByFromAndToPath

yohei0125 пре 3 година
родитељ
комит
b9ca16a708
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      packages/app/src/server/service/page-operation.ts

+ 8 - 0
packages/app/src/server/service/page-operation.ts

@@ -169,6 +169,14 @@ class PageOperationService {
     clearInterval(timerObj);
     clearInterval(timerObj);
   }
   }
 
 
+  async getAncestorsByFromAndToPath(fromPath: string, toPath: string) {
+    const fromAncestors = await this.crowi.getParentAndFillAncestorsBySystem(fromPath);
+    const toAncestors = await this.crowi.getParentAndFillAncestorsBySystem(toPath);
+    console.log({ fromAncestors });
+    console.log({ toAncestors });
+    return;
+  }
+
 }
 }
 
 
 export default PageOperationService;
 export default PageOperationService;