mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Fixed first time submissions webhook only sending for non first time submissions
This commit is contained in:
parent
9ea98b2e2b
commit
168229e602
1 changed files with 1 additions and 1 deletions
|
@ -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": [{
|
||||
|
|
Loading…
Reference in a new issue