From c5a95cc1ebe6dd3a4d572220f5cd60c31381de97 Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 26 Dec 2017 10:40:55 -1000 Subject: Fix publishVote without previewVotes --- lib/serve.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/serve.js') 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) } } -- cgit v1.2.3