mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
missing async caused confusion
This commit is contained in:
@@ -56,7 +56,7 @@ import { createOrbitDB } from '@orbitdb/core'
|
||||
// The above address can be used on another peer to open the same database
|
||||
|
||||
// Listen for updates from peers
|
||||
db.events.on("update", entry => {
|
||||
db.events.on("update", async entry => {
|
||||
console.log(entry)
|
||||
const all = await db.all()
|
||||
console.log(all)
|
||||
|
||||
Reference in New Issue
Block a user