소스 검색

delete comment

zahmis 5 년 전
부모
커밋
0e78c4f19f
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      src/server/routes/apiv3/pages.js

+ 1 - 5
src/server/routes/apiv3/pages.js

@@ -87,11 +87,7 @@ module.exports = (crowi) => {
 
   router.get('/duplicate', accessTokenParser, loginRequired, async(req, res) => {
     const { path } = req.query;
-    // const result = await Page.findListWithDescendants(path, req.user);
-    // const pages = result.pages;
-    // const duplicatePaths = pages.map(element => element.path);
-    // console.log(duplicatePaths);
-    // console.log(req.user);
+
     const pageData = await Page.findByPath(path);
 
     const result = await Page.findManageableListWithDescendants(pageData, req.user);