mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-03-12 21:48:39 +01:00
cleaned up debugging lines
This commit is contained in:
parent
7c01493189
commit
107e835342
@ -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) => this.ipfs.files.mkdir('/ipfs-boards-profile/posts', { p: true }, cb),
|
||||||
(e, cb) => {
|
(e, cb) => {
|
||||||
// Remove old profile files if present
|
// Remove old profile files if present
|
||||||
console.log('Removing file...')
|
|
||||||
var path = '/ipfs-boards-profile/ipfs-boards-version.txt'
|
var path = '/ipfs-boards-profile/ipfs-boards-version.txt'
|
||||||
this.ipfs.files.rm(path, { r: true }, res => {
|
this.ipfs.files.rm(path, { r: true }, res => {
|
||||||
console.log('Removing file...')
|
|
||||||
var path = '/ipfs-boards-profile/profile.json'
|
var path = '/ipfs-boards-profile/profile.json'
|
||||||
this.ipfs.files.rm(path, { r: true }, res => cb())
|
this.ipfs.files.rm(path, { r: true }, res => cb())
|
||||||
})
|
})
|
||||||
@ -128,11 +126,6 @@ BoardsAPI.prototype.createProfile = function (profile, done) {
|
|||||||
var profile_hash = res.Hash
|
var profile_hash = res.Hash
|
||||||
console.log('Publishing profile...')
|
console.log('Publishing profile...')
|
||||||
this.ipfs.name.publish(profile_hash, cb)
|
this.ipfs.name.publish(profile_hash, cb)
|
||||||
// TODO: cb is probably never called here! Figure out why!
|
|
||||||
},
|
|
||||||
(e, cb) => {
|
|
||||||
console.log('Done')
|
|
||||||
cb()
|
|
||||||
}
|
}
|
||||||
], done)
|
], done)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user