mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
BUG ipfs.id() is not a string
This commit is contained in:
committed by
Mark Robert Henderson
parent
00287eb1ae
commit
f7a95d8587
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user