From ba8ef59419687801f19fa9efd1efef9e518f89c8 Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Fri, 8 Feb 2019 08:41:24 -0500 Subject: [PATCH] docs: remove await outside of an async function in example See #549. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3df07d9..45d6e4b 100644 --- a/README.md +++ b/README.md @@ -139,8 +139,9 @@ const OrbitDB = require('orbit-db') const ipfs = IpfsApi('localhost', '5001') const orbitdb = new OrbitDB(ipfs) -const db = await orbitdb.log('hello') -... +orbitdb.log('hello').then(db => { + // Do something with your db. +}) ``` ## API