Merge pull request #145 from ajayyy/testing

Fix removing undo vote
This commit is contained in:
Ajay Ramachandran
2020-09-15 13:13:16 -04:00
committed by GitHub

View File

@@ -270,6 +270,9 @@ async function voteOnSponsorTime(req, res) {
} else if (votesRow.type === 2) {
//extra downvote
oldIncrementAmount = -4;
} else if (votesRow.type === 20) {
//undo/cancel vote
oldIncrementAmount = 0;
} else if (votesRow.type < 0) {
//vip downvote
oldIncrementAmount = votesRow.type;