From 3c17a11f6b4409ba3242f455c5fbb912683a85f2 Mon Sep 17 00:00:00 2001 From: Zach Ferland Date: Fri, 11 Sep 2020 14:02:00 -0400 Subject: [PATCH] fix: another datastore path, for upgrade, key not found fix --- src/3box.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/3box.js b/src/3box.js index fb5f1ae1..d4e8f728 100644 --- a/src/3box.js +++ b/src/3box.js @@ -630,9 +630,13 @@ async function initIPFSRepo (iframeCache) { ipfsRootPath = 'ipfs/root/' + sessionID const levelInstance = new LevelStore(ipfsRootPath) + const ipfsDatastorePath = 'ipfs/datastore' // path name level-js-ipfs/datastore + const levelDatastore = new LevelStore(ipfsDatastorePath) + repoOpts = { storageBackends: { - root: () => levelInstance + root: () => levelInstance, + datastore: () => levelDatastore } }