BUG ipfs.id() is not a string

This commit is contained in:
Ronan LE MEILLAT 2022-06-10 16:38:56 +02:00 committed by Mark Robert Henderson
parent 00287eb1ae
commit f7a95d8587

View File

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