aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-12-26 10:40:55 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-12-26 10:40:55 -1000
commitc5a95cc1ebe6dd3a4d572220f5cd60c31381de97 (patch)
treecd38190e2479cf45fcdc5febc011aaee8e93b4b4
parent399d0a666d1f8d2956c81279a98bed3c483dea51 (diff)
downloadpatchfoo-c5a95cc1ebe6dd3a4d572220f5cd60c31381de97.tar.gz
patchfoo-c5a95cc1ebe6dd3a4d572220f5cd60c31381de97.zip
Fix publishVote without previewVotes
-rw-r--r--lib/serve.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/serve.js b/lib/serve.js
index b688f72..76b3a8c 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -175,7 +175,7 @@ Serve.prototype.publishJSON = function (cb) {
this.publish(content, cb)
}
-Serve.prototype.publishVote = function () {
+Serve.prototype.publishVote = function (next) {
var content = {
type: 'vote',
channel: this.data.channel || undefined,
@@ -192,7 +192,7 @@ Serve.prototype.publishVote = function () {
var url = this.app.render.toUrl('/compose?' + q)
this.redirect(url)
} else {
- this.publish(content, cb)
+ this.publish(content, next)
}
}