From f7a95d858700230162bed539e2fe7eb1723ea07e Mon Sep 17 00:00:00 2001 From: Ronan LE MEILLAT Date: Fri, 10 Jun 2022 16:38:56 +0200 Subject: [PATCH] BUG ipfs.id() is not a string --- src/OrbitDB.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrbitDB.js b/src/OrbitDB.js index cee6258..e3f7365 100644 --- a/src/OrbitDB.js +++ b/src/OrbitDB.js @@ -106,7 +106,7 @@ class OrbitDB { } if (!options.keystore) { - const keystorePath = path.join(options.directory, id, '/keystore') + const keystorePath = path.join(options.directory, typeof id !== 'object' ? id : id.toString(), '/keystore') const keyStorage = await options.storage.createStore(keystorePath) options.keystore = new Keystore(keyStorage) }