mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
Use id instead of options.id
This commit is contained in:
parent
08eaf84d74
commit
9c2ce42c4f
@ -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
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user