mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Use id instead of options.id
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user