More tree

This commit is contained in:
Jori Lallo
2016-06-20 23:12:56 -07:00
parent 24e02bfdc4
commit 2c07d43f46
7 changed files with 46 additions and 37 deletions

View File

@ -31,6 +31,11 @@ export function presentAtlas(atlas, includeRecentDocuments=false) {
type: atlas.type,
}
if (atlas.type === 'atlas') {
// Todo replace with `.atlasStructure`
data.structure = await atlas.buildStructure();
}
if (includeRecentDocuments) {
const documents = await Document.findAll({
where: {