Explorar o código

add wip getAncestorsByFromAndToPath

yohei0125 %!s(int64=4) %!d(string=hai) anos
pai
achega
b9ca16a708
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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);
   }
 
+  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;