From 9c2ce42c4f019c856606f3ac6e8fd91cafcf48b1 Mon Sep 17 00:00:00 2001 From: haad Date: Tue, 16 Nov 2021 09:01:40 +0200 Subject: [PATCH] Use id instead of options.id --- src/OrbitDB.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OrbitDB.js b/src/OrbitDB.js index 1d7537e..9f617e2 100644 --- a/src/OrbitDB.js +++ b/src/OrbitDB.js @@ -106,14 +106,14 @@ class OrbitDB { } if (!options.keystore) { - const keystorePath = path.join(options.directory, options.id || id, '/keystore') + const keystorePath = path.join(options.directory, id, '/keystore') const keyStorage = await options.storage.createStore(keystorePath) options.keystore = new Keystore(keyStorage) } if (!options.identity) { options.identity = await Identities.createIdentity({ - id: options.id || id, + id: id, keystore: options.keystore }) }