diff --git a/lib/boards-api.js b/lib/boards-api.js index 92ae8f4..bfc8e30 100644 --- a/lib/boards-api.js +++ b/lib/boards-api.js @@ -99,10 +99,8 @@ BoardsAPI.prototype.createProfile = function (profile, done) { (e, cb) => this.ipfs.files.mkdir('/ipfs-boards-profile/posts', { p: true }, cb), (e, cb) => { // Remove old profile files if present - console.log('Removing file...') var path = '/ipfs-boards-profile/ipfs-boards-version.txt' this.ipfs.files.rm(path, { r: true }, res => { - console.log('Removing file...') var path = '/ipfs-boards-profile/profile.json' this.ipfs.files.rm(path, { r: true }, res => cb()) }) @@ -128,11 +126,6 @@ BoardsAPI.prototype.createProfile = function (profile, done) { var profile_hash = res.Hash console.log('Publishing profile...') this.ipfs.name.publish(profile_hash, cb) - // TODO: cb is probably never called here! Figure out why! - }, - (e, cb) => { - console.log('Done') - cb() } ], done) }