feat: fetch page tree resolver

This commit is contained in:
NGPixel committed 2019-10-07 23:38:06 -04:00
1 parent 38c33c58bb
commit 2a4b89859c
3 files changed
+56

No files matched your search

+3
View File
@@ -43,6 +43,9 @@ module.exports = async (pageId) => {
pageId: isFolder ? null : page.id
})
parentId = pik
} else if (isFolder && !found.isFolder) {
found.isFolder = true
parentId = found.id
} else {
parentId = found.id
}