Commit bd7f9125 authored by Vladislav Bashkirev's avatar Vladislav Bashkirev

Use class method for pin.add operation

parent 0f517e4c
......@@ -72,7 +72,7 @@ class Ipfs {
let hash;
return this.ipfs.files.add(files).then((res) => {
hash = res;
return this.ipfs.pin.add(hash);
return this.pin(hash);
}).then(() => {
return Promise.resolve(hash);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment