Merge pull request #1113 from Le-Space/main

missing async caused confusion
This commit is contained in:
Haad
2023-10-20 10:36:25 +02:00
committed by GitHub

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)