1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-03-11 21:38:38 +01:00

cleaned up debugging lines

This commit is contained in:
Enrico Fasoli 2015-12-16 17:42:09 +01:00
parent 7c01493189
commit 107e835342

View File

@ -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)
}