Commit 8cbe5ad597233971b4c3e3f485652b6362e6f068
Merge branch 'master' of ssb://%q5d5Du+9WkaSdjc8aJPZm+jMrqgo0tmfR+RcX5ZZ6H4=.sha256
Ev Bogue committed on 7/5/2016, 11:41:37 PMParent: 23fd0e96f5d3428c5da449cebc49cd30b9b9d8be
Parent: a934d76192a1ee2f6cfe393a5a601c978140c756
Files changed
lib/votes.js | changed |
package.json | changed |
lib/votes.js | ||
---|---|---|
@@ -22,14 +22,18 @@ | ||
22 | 22 … | } |
23 | 23 … | pull( |
24 | 24 … | sbot.links(opts), |
25 | 25 … | pull.drain(processMsg, function (err) { |
26 | - cb(err, result) | |
26 … | + if (err) return cb(err) | |
27 … | + cb(null, result) | |
27 | 28 … | // keep the result updated |
28 | 29 … | opts.live = true |
30 … | + opts.gte = Date.now() | |
29 | 31 … | pull( |
30 | 32 … | sbot.links(opts), |
31 | - pull.drain(processMsg) | |
33 … | + pull.drain(processMsg, function (err) { | |
34 … | + if (err) console.error('votes', err) | |
35 … | + }) | |
32 | 36 … | ) |
33 | 37 … | }) |
34 | 38 … | ) |
35 | 39 … |
Built with git-ssb-web