aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-06-26 02:43:48 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-06-27 16:27:15 -1000
commit865a911d8d889a4eb50009d0d879d204012b87b3 (patch)
tree4fcd7e8080a3ab1fd20532233decb7870a68243d
parent08219f99c20f516629b2be6d1996a21fdcb42731 (diff)
downloadpatchfoo-865a911d8d889a4eb50009d0d879d204012b87b3.tar.gz
patchfoo-865a911d8d889a4eb50009d0d879d204012b87b3.zip
Fix votes end handling
-rw-r--r--lib/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/app.js b/lib/app.js
index 052c767..13d947e 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -440,7 +440,7 @@ App.prototype.getVoted = function (_opts, cb) {
votes.feedsObj[msg.value.author] = value
votes.value += value
}, function (err) {
- if (err) return cb(err)
+ if (err && err !== true) return cb(err)
var items = votedArray
if (opts.reverse) items.reverse()
items.sort(compareVoted)