Explorar el Código

refactor findPageAndMetaDataByViewer

yuken hace 3 años
padre
commit
591a8eb713
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/app/src/server/service/page.ts

+ 1 - 1
packages/app/src/server/service/page.ts

@@ -227,7 +227,7 @@ class PageService {
       page = await Page.findByIdAndViewer(pageId, user, null, includeEmpty);
       page = await Page.findByIdAndViewer(pageId, user, null, includeEmpty);
     }
     }
     else {
     else {
-      page = await Page.findByPathAndViewer(path, user, null, includeEmpty);
+      page = await Page.findByPathAndViewer(path, user, null, true, includeEmpty);
     }
     }
 
 
     if (page == null) {
     if (page == null) {