aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-29 06:27:26 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-29 06:27:26 -1000
commitb84197b91fdfcc86baab903d0ad393cbe5fbb3b2 (patch)
tree9fc6b10163e22af2de646b037d7d72684a965454
parentb66bcecec258b0a2631ec338501afa9409882fe8 (diff)
downloadpatchfoo-b84197b91fdfcc86baab903d0ad393cbe5fbb3b2.tar.gz
patchfoo-b84197b91fdfcc86baab903d0ad393cbe5fbb3b2.zip
Fix addBlob
-rw-r--r--lib/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/app.js b/lib/app.js
index 8ef859f..825bd91 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -177,7 +177,10 @@ App.prototype.addBlob = function (cb) {
done(function (err, hash, add) {
cb(err, hash)
})
- return sink
+ return pull(
+ hasher(hashCb),
+ this.sbot.blobs.add(addCb)
+ )
}
App.prototype.pushBlob = function (id, cb) {