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

Commit d9af946

Browse files
author
Henry Rodrick
authored
Merge pull request #9 from alanshaw/fix/upgrade-for-0.36
fix: upgrade for 0.36
2 parents c7b997e + da6d12f commit d9af946

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ function getFile(ipfs, rootHash, filename, callback) {
6464
var hash = null
6565
var fileSize, fileName
6666

67-
res.links.forEach(function(link) {
68-
if (link.name === filename) {
69-
hash = link.cid.toString()
70-
fileSize = link.size
71-
fileName = link.name
67+
res.Links.forEach(function(link) {
68+
if (link.Name === filename) {
69+
hash = link.Hash
70+
fileSize = link.Tsize
71+
fileName = link.Name
7272
return false
7373
}
7474
});

0 commit comments

Comments
 (0)