소스 검색

Added a comment

Taichi Masuyama 4 년 전
부모
커밋
fa1e9c60e1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/app/src/server/models/page.ts

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

@@ -301,6 +301,7 @@ schema.statics.findAncestorsChildrenByPathAndViewer = async function(path: strin
     .query
     .lean()
     .exec();
+  // mark target
   const pages = _pages.map((page: PageDocument & {isTarget?: boolean}) => {
     if (page.path === path) {
       page.isTarget = true;