Procházet zdrojové kódy

add wip getAncestorsByFromAndToPath

yohei0125 před 4 roky
rodič
revize
b9ca16a708

+ 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;