Use id instead of options.id

This commit is contained in:
haad 2021-11-16 09:01:40 +02:00
parent 08eaf84d74
commit 9c2ce42c4f

View File

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