Fix getFile

This commit is contained in:
2017-02-17 18:31:27 +08:00
parent 31dc7c9c8a
commit 0bf09fbe49
+1 -1
View File
@@ -23,7 +23,7 @@ export default Ember.Service.extend({
},
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();
});
}