diff --git a/README.md b/README.md index 6c86cf1..3353962 100644 --- a/README.md +++ b/README.md @@ -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)