feat: fetch page tree resolver

This commit is contained in:
NGPixel
2019-10-07 23:38:06 -04:00
parent 38c33c58bb
commit 2a4b89859c
3 changed files with 56 additions and 0 deletions

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
}