mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 20:17:02 +03:00
Merge pull request #146 from ajayyy/testing
Don't send webhooks for duplicate votes
This commit is contained in:
@@ -355,17 +355,19 @@ async function voteOnSponsorTime(req, res) {
|
|||||||
|
|
||||||
res.sendStatus(200);
|
res.sendStatus(200);
|
||||||
|
|
||||||
sendWebhooks({
|
if (incrementAmount - oldIncrementAmount !== 0) {
|
||||||
UUID,
|
sendWebhooks({
|
||||||
nonAnonUserID,
|
UUID,
|
||||||
voteTypeEnum,
|
nonAnonUserID,
|
||||||
isVIP,
|
voteTypeEnum,
|
||||||
isOwnSubmission,
|
isVIP,
|
||||||
row,
|
isOwnSubmission,
|
||||||
category,
|
row,
|
||||||
incrementAmount,
|
category,
|
||||||
oldIncrementAmount
|
incrementAmount,
|
||||||
});
|
oldIncrementAmount
|
||||||
|
});
|
||||||
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error(err);
|
logger.error(err);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user