Skip to content

Commit

Permalink
Explicitly use IPFS client 0.33.1 for rehydrate images (#1285)
Browse files Browse the repository at this point in the history
  • Loading branch information
hareeshnagaraj committed Mar 9, 2021
1 parent 21b4421 commit 7ec9255
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion creator-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"fs-extra": "^9.0.1",
"hashids": "^2.2.1",
"ioredis": "^4.9.3",
"ipfs-http-client": "^33.1.1",
"ipfs-http-client": "33.1.1",
"ipfs-http-client-latest": "npm:ipfs-http-client@^42.0.0",
"jimp": "^0.6.1",
"lodash": "^4.17.15",
Expand Down
2 changes: 1 addition & 1 deletion creator-node/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ async function rehydrateIpfsFromFsIfNecessary (multihash, storagePath, logContex
}

try {
let addResp = await ipfsLatest.add(ipfsAddArray, { pin: false })
let addResp = await ipfs.add(ipfsAddArray, { pin: false })
logger.info(`rehydrateIpfsFromFsIfNecessary - addResp ${JSON.stringify(addResp)}`)
} catch (e) {
logger.error(`rehydrateIpfsFromFsIfNecessary - addResp ${e}, ${ipfsAddArray}`)
Expand Down

0 comments on commit 7ec9255

Please sign in to comment.