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

Commit 4e99cf5

Browse files
vasco-santosAlan Shaw
authored and
Alan Shaw
committed
fix: ipns datastore get not found (#1558)
1 parent 549f2f6 commit 4e99cf5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,21 +105,21 @@
105105
"hapi-set-header": "^1.0.2",
106106
"hoek": "^5.0.3",
107107
"human-to-milliseconds": "^1.0.0",
108-
"interface-datastore": "~0.4.2",
108+
"interface-datastore": "~0.5.0",
109109
"ipfs-api": "^24.0.0",
110110
"ipfs-bitswap": "~0.20.3",
111111
"ipfs-block": "~0.7.1",
112112
"ipfs-block-service": "~0.14.0",
113113
"ipfs-http-response": "~0.1.2",
114114
"ipfs-mfs": "~0.3.0",
115115
"ipfs-multipart": "~0.1.0",
116-
"ipfs-repo": "~0.23.1",
116+
"ipfs-repo": "~0.24.0",
117117
"ipfs-unixfs": "~0.1.15",
118118
"ipfs-unixfs-engine": "~0.32.3",
119119
"ipld": "~0.17.3",
120120
"ipld-dag-cbor": "~0.12.1",
121121
"ipld-dag-pb": "~0.14.6",
122-
"ipns": "~0.1.3",
122+
"ipns": "~0.2.0",
123123
"is-ipfs": "~0.4.2",
124124
"is-pull-stream": "~0.0.0",
125125
"is-stream": "^1.1.0",

src/core/ipns/publisher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class IpnsPublisher {
191191
let result
192192

193193
if (err) {
194-
if (!err.notFound) {
194+
if (err.code !== 'ERR_NOT_FOUND') {
195195
const errMsg = `unexpected error getting the ipns record ${peerId.id} from datastore`
196196

197197
log.error(errMsg)

0 commit comments

Comments
 (0)