Increased VIP power even more.

This commit is contained in:
Ajay Ramachandran
2019-12-29 21:55:48 -05:00
parent f156b21ead
commit e868fb4c22

View File

@@ -343,7 +343,7 @@ function voteOnSponsorTime(req, res) {
db.prepare("SELECT votes, views FROM sponsorTimes WHERE UUID = ?").get(UUID, async function(err, row) { db.prepare("SELECT votes, views FROM sponsorTimes WHERE UUID = ?").get(UUID, async function(err, row) {
if (vipResult.row.userCount != 0 && incrementAmount < 0) { if (vipResult.row.userCount != 0 && incrementAmount < 0) {
//this user is a vip and a downvote //this user is a vip and a downvote
incrementAmount = -Math.min(350, row.votes + 2 - oldIncrementAmount); incrementAmount = - (row.votes + 2 - oldIncrementAmount);
type = incrementAmount; type = incrementAmount;
} else if (row != null && (row.votes > 8 || row.views > 15) && incrementAmount < 0) { } else if (row != null && (row.votes > 8 || row.views > 15) && incrementAmount < 0) {
//increase the power of this downvote //increase the power of this downvote