Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Commit 3c17a11

Browse files
committed
fix: another datastore path, for upgrade, key not found fix
1 parent f35672c commit 3c17a11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/3box.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,13 @@ async function initIPFSRepo (iframeCache) {
630630
ipfsRootPath = 'ipfs/root/' + sessionID
631631
const levelInstance = new LevelStore(ipfsRootPath)
632632

633+
const ipfsDatastorePath = 'ipfs/datastore' // path name level-js-ipfs/datastore
634+
const levelDatastore = new LevelStore(ipfsDatastorePath)
635+
633636
repoOpts = {
634637
storageBackends: {
635-
root: () => levelInstance
638+
root: () => levelInstance,
639+
datastore: () => levelDatastore
636640
}
637641
}
638642

0 commit comments

Comments
 (0)