From 8d96406a55055e0541651c87d080febbb50f7905 Mon Sep 17 00:00:00 2001 From: Nico Krause Date: Wed, 18 Oct 2023 12:35:06 +0500 Subject: [PATCH] missing async caused confusion --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)