Add 'synced' event
This commit is contained in:
parent
7fc9f2dce5
commit
7d09b71714
@ -93,6 +93,7 @@ class OrbitDB {
|
||||
const store = this.stores[dbname]
|
||||
store.sync(hash)
|
||||
.then((res) => Cache.set(dbname, hash))
|
||||
.then(() => this.events.emit('synced', dbname, hash))
|
||||
.catch((e) => console.error(e.stack))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user