continuing refactoring

This commit is contained in:
zadam
2020-01-15 21:36:01 +01:00
parent f98a20928c
commit 7963de0abc
12 changed files with 138 additions and 118 deletions

View File

@@ -172,6 +172,10 @@ class TreeCache {
return (await this.getNotes([noteId], silentNotFoundError))[0];
}
getNoteFromCache(noteId) {
return this.notes[noteId];
}
getBranches(branchIds) {
return branchIds
.map(branchId => this.getBranch(branchId))