Fix getFile
This commit is contained in:
@@ -23,7 +23,7 @@ export default Ember.Service.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
getFile(hash) {
|
getFile(hash) {
|
||||||
return this.get('ipfs').cat(hash, { buffer: true }, (err, res) => {
|
return this.get('ipfs').cat(hash, { buffer: true }).then(res) => {
|
||||||
return res.toString();
|
return res.toString();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user