git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit 152a5c54ca57c0d4b915e437be393d536eff25a0

apply hash correctly

Dominic Tarr committed on 7/30/2016, 11:12:36 AM
Parent: f8196f783e989cd2c04642e1f2d7e1d21b4ef287

Files changed

sbot-api.jschanged
sbot-api.jsView
@@ -11,9 +11,9 @@
1111 : data
1212 )
1313 }, function (err) {
1414 if(err && !onHash) throw err
15- var b = buffers.length > 1 ? Buffer.concat(b) : b
15+ var b = buffers.length > 1 ? Buffer.concat(buffers) : buffers[0]
1616 var h = '&'+ssbKeys.hash(b)
1717 onHash && onHash(err, h)
1818 })
1919 }

Built with git-ssb-web