From 50bc218ccd806da462b6f0e0dd0d5ce89dcbe76e Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 28 Dec 2019 00:36:03 -0500 Subject: [PATCH] Fixed double downvote issue. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3c3c914..b6ffa3f 100644 --- a/index.js +++ b/index.js @@ -322,7 +322,7 @@ app.get('/api/voteOnSponsorTime', function (req, res) { } else if (votesRow.type == 0) { //downvote oldIncrementAmount = -1; - } else if (votesRow.type == 1) { + } else if (votesRow.type == 2) { //extra downvote oldIncrementAmount = -4; } else if (votesRow.type <= -25) {