collections: refactor notes collection initialization

This commit is contained in:
thecodrr
2020-04-15 23:25:53 +05:00
parent 8546742124
commit 9a951a3a2e
3 changed files with 36 additions and 46 deletions

View File

@@ -14,8 +14,10 @@ class Database {
constructor(context) {
this.context = new Storage(context);
}
async init() {
this.notebooks = new Notebooks(this.context);
this.notes = await Notes.new(this);
/* this.notebooks = new Notebooks(this.context);
this.notes = new Notes(this.context);
this.trash = new Trash(this.context);
this.user = new User(this.context);
@@ -40,7 +42,7 @@ class Database {
this.syncer = new Sync(this);
this.vault = new Vault(this, this.context);
this.conflicts = new Conflicts(this);
this.lookup = new Lookup(this);
this.lookup = new Lookup(this); */
}
sync() {