mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 13:07:02 +03:00
Fix typo
This commit is contained in:
committed by
GitHub
parent
06fa6eb874
commit
009a489d3a
@@ -198,7 +198,7 @@ function categoryVote(UUID, userID, isVIP, category, hashedIP, res) {
|
|||||||
|
|
||||||
//TODO: In the future, raise this number from zero to make it harder to change categories
|
//TODO: In the future, raise this number from zero to make it harder to change categories
|
||||||
// VIPs change it every time
|
// VIPs change it every time
|
||||||
if (nextCategoryCount - currentCategoryCount >= (submissionInfo ? Math.max(Math.ciel(submissionInfo.votes / 2), 1) : 1) || isVIP) {
|
if (nextCategoryCount - currentCategoryCount >= (submissionInfo ? Math.max(Math.ceil(submissionInfo.votes / 2), 1) : 1) || isVIP) {
|
||||||
// Replace the category
|
// Replace the category
|
||||||
db.prepare('run', "update sponsorTimes set category = ? where UUID = ?", [category, UUID]);
|
db.prepare('run', "update sponsorTimes set category = ? where UUID = ?", [category, UUID]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user