Remove IPFS pinner

The pinner now lives in its own npm package
This commit is contained in:
2019-07-02 19:09:26 +02:00
parent 87a468bc91
commit 2316e8f15a
3 changed files with 0 additions and 75 deletions

View File

@@ -9,18 +9,6 @@ class Record extends Base {
return Promise.all(records);
});
}
pinIpfsHashes () {
return this.count.then(count => {
let promises = [...Array(count).keys()].map(i => {
let id = i + 1; // 0 => 1 - ids start with 1 and not with 0
return this.getData(id).then(data => {
return this.ipfs.pin(data);
});
});
return Promise.all(promises);
});
}
}
module.exports = Record;