missing async caused confusion

This commit is contained in:
Nico Krause
2023-10-18 12:35:06 +05:00
parent 3eee148510
commit 8d96406a55

View File

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