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

fix: upgrade for 0.36 #9

Merged
merged 3 commits into from
Jul 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ function getFile(ipfs, rootHash, filename, callback) {
var hash = null
var fileSize, fileName

res.links.forEach(function(link) {
if (link.name === filename) {
hash = link.cid.toString()
fileSize = link.size
fileName = link.name
res.Links.forEach(function(link) {
if (link.Name === filename) {
hash = link.Hash
fileSize = link.Tsize
fileName = link.Name
return false
}
});
Expand Down