import & export fixed

This commit is contained in:
zadam
2020-01-21 21:43:23 +01:00
parent 96a7b4e45e
commit 55d1f9e9f0
8 changed files with 57 additions and 49 deletions

View File

@@ -193,6 +193,12 @@ class TreeCache {
return this.branches[branchId];
}
}
async getBranchId(parentNoteId, childNoteId) {
const child = await this.getNote(childNoteId);
return child.parentToBranch[parentNoteId];
}
}
const treeCache = new TreeCache();