mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-03-11 21:38:38 +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)
|
||||
done(err)
|
||||
} 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)
|
||||
done(null)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user