Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 62212c4

Browse files
committed
fix: update database not found error
1 parent c7cf68a commit 62212c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/utils/with-mfs-root.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const withMfsRoot = (ipfs, callback) => {
2222
(cb) => {
2323
// Load the MFS root CID
2424
datastore.get(MFS_ROOT_KEY, (error, result) => {
25-
if (error && error.notFound) {
25+
if (error && error.code === 'ERR_NOT_FOUND') {
2626
log('Creating new MFS root')
2727

2828
return waterfall([

0 commit comments

Comments
 (0)