Add 'synced' event

This commit is contained in:
haad 2017-01-29 16:27:01 +02:00
parent 7fc9f2dce5
commit 7d09b71714

View File

@ -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))
}