1
0
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:
Enrico Fasoli 2015-11-15 21:10:58 +01:00
parent 4e47a980ae
commit 122b8e42f9

View File

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