mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Add 'synced' event
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user