feat: recalculate conflicts on sync

This commit is contained in:
thecodrr
2020-04-04 13:29:33 +05:00
parent 10ee35a145
commit 4dc3d2fe44
4 changed files with 65 additions and 44 deletions

View File

@@ -7,6 +7,7 @@ import Sync from "./sync";
import Vault from "./vault";
import Lookup from "./lookup";
import Content from "../collections/content";
import Conflict from "./conflicts";
class Database {
constructor(context) {
@@ -37,6 +38,7 @@ class Database {
await this.trash.init(this.notes, this.notebooks, this.delta, this.text);
this.syncer = new Sync(this);
this.vault = new Vault(this, this.context);
this.conflicts = new Conflicts(this);
this.lookup = new Lookup(this);
}