Merge pull request #146 from ajayyy/testing

Don't send webhooks for duplicate votes
This commit is contained in:
Ajay Ramachandran
2020-09-16 09:32:09 -04:00
committed by GitHub

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);