aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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)
}
}