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

Commit

Permalink
Merge pull request #9 from alanshaw/fix/upgrade-for-0.36
Browse files Browse the repository at this point in the history
fix: upgrade for 0.36
  • Loading branch information
Henry Rodrick authored Jul 16, 2019
2 parents c7b997e + da6d12f commit d9af946
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit d9af946

Please sign in to comment.