Don't send webhooks for duplicate votes

This commit is contained in:
Ajay Ramachandran
2020-09-16 09:30:26 -04:00
parent a7933c925b
commit 211562a0d6

View File

@@ -355,6 +355,7 @@ async function voteOnSponsorTime(req, res) {
res.sendStatus(200);
if (incrementAmount - oldIncrementAmount !== 0) {
sendWebhooks({
UUID,
nonAnonUserID,
@@ -366,6 +367,7 @@ async function voteOnSponsorTime(req, res) {
incrementAmount,
oldIncrementAmount
});
}
} catch (err) {
logger.error(err);