From 168229e6020b1519c1c1ca892c1d2015d3f6aa56 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 30 Aug 2020 11:55:19 -0400 Subject: [PATCH] Fixed first time submissions webhook only sending for non first time submissions --- src/routes/postSkipSegments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/postSkipSegments.js b/src/routes/postSkipSegments.js index 1af0721..799711f 100644 --- a/src/routes/postSkipSegments.js +++ b/src/routes/postSkipSegments.js @@ -63,7 +63,7 @@ function sendWebhooks(userID, videoID, UUID, segmentInfo) { // If it is a first time submission // Then send a notification to discord - if (config.discordFirstTimeSubmissionsWebhookURL === null || userSubmissionCountRow.submissionCount <= 1) return; + if (config.discordFirstTimeSubmissionsWebhookURL === null || userSubmissionCountRow.submissionCount > 1) return; request.post(config.discordFirstTimeSubmissionsWebhookURL, { json: { "embeds": [{