mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-25 17:08:35 +03:00
Indent switch case
This commit is contained in:
@@ -472,6 +472,7 @@ async function updateDataIfVideoDurationChange(videoID: VideoID, service: string
|
||||
|
||||
// Disable max submissions for now
|
||||
// Disable IP ratelimiting for now
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
async function checkRateLimit(userID:string, videoID: VideoID, timeSubmitted: number, hashedIP: string, options: {
|
||||
enableCheckByIP: boolean;
|
||||
enableCheckByUserID: boolean;
|
||||
|
||||
@@ -61,12 +61,12 @@ async function sendWebhooks(voteData: VoteData) {
|
||||
let webhookURL: string = null;
|
||||
if (voteData.voteTypeEnum === voteTypes.normal) {
|
||||
switch (voteData.finalResponse.webhookType) {
|
||||
case VoteWebhookType.Normal:
|
||||
webhookURL = config.discordReportChannelWebhookURL;
|
||||
break;
|
||||
case VoteWebhookType.Rejected:
|
||||
webhookURL = config.discordFailedReportChannelWebhookURL;
|
||||
break;
|
||||
case VoteWebhookType.Normal:
|
||||
webhookURL = config.discordReportChannelWebhookURL;
|
||||
break;
|
||||
case VoteWebhookType.Rejected:
|
||||
webhookURL = config.discordFailedReportChannelWebhookURL;
|
||||
break;
|
||||
}
|
||||
} else if (voteData.voteTypeEnum === voteTypes.incorrect) {
|
||||
webhookURL = config.discordCompletelyIncorrectReportWebhookURL;
|
||||
|
||||
Reference in New Issue
Block a user