Fix removing undo vote

This commit is contained in:
Ajay Ramachandran
2020-09-15 13:10:55 -04:00
parent be86f43947
commit a7933c925b

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;