mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-30 19:38:28 +03:00
Fix vote webhook not working
This commit is contained in:
@@ -128,7 +128,6 @@ async function sendWebhooks(voteData: VoteData) {
|
|||||||
webhookURL = config.discordCompletelyIncorrectReportWebhookURL;
|
webhookURL = config.discordCompletelyIncorrectReportWebhookURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.newLeafURLs !== null) {
|
|
||||||
const videoID = submissionInfoRow.videoID;
|
const videoID = submissionInfoRow.videoID;
|
||||||
const data = await getVideoDetails(videoID);
|
const data = await getVideoDetails(videoID);
|
||||||
|
|
||||||
@@ -206,7 +205,6 @@ async function sendWebhooks(voteData: VoteData) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
async function categoryVote(UUID: SegmentUUID, userID: HashedUserID, isVIP: boolean, isTempVIP: boolean, isOwnSubmission: boolean, category: Category
|
async function categoryVote(UUID: SegmentUUID, userID: HashedUserID, isVIP: boolean, isTempVIP: boolean, isOwnSubmission: boolean, category: Category
|
||||||
, hashedIP: HashedIP, finalResponse: FinalResponse): Promise<{ status: number, message?: string }> {
|
, hashedIP: HashedIP, finalResponse: FinalResponse): Promise<{ status: number, message?: string }> {
|
||||||
|
|||||||
Reference in New Issue
Block a user