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) }