mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-03-12 21:48:39 +01:00
added another error check
This commit is contained in:
parent
4e47a980ae
commit
122b8e42f9
@ -272,7 +272,7 @@ BoardsAPI.prototype.init = function(done){
|
|||||||
console.log('Error while calculating version hash:',err)
|
console.log('Error while calculating version hash:',err)
|
||||||
done(err)
|
done(err)
|
||||||
} else {
|
} else {
|
||||||
this.version_hash = r[0].Hash
|
if(r && r[0] && r[0].Hash) this.version_hash = r[0].Hash
|
||||||
console.log('Version hash is',this.version_hash)
|
console.log('Version hash is',this.version_hash)
|
||||||
done(null)
|
done(null)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user