mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Removed notification for first time submission if there is a conflict.
This commit is contained in:
parent
95ccaf9478
commit
d5a679731c
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -224,7 +224,7 @@ app.get('/api/postVideoSponsorTimes', async function (req, res) {
|
|||
|
||||
//check if they are a first time user
|
||||
//if so, send a notification to discord
|
||||
if (config.youtubeAPIKey !== null && config.discordFirstTimeSubmissionsWebhookURL !== null) {
|
||||
if (config.youtubeAPIKey !== null && config.discordFirstTimeSubmissionsWebhookURL !== null && row == null) {
|
||||
let userSubmissionCountResult = await new Promise((resolve, reject) => {
|
||||
db.prepare("SELECT count(*) as submissionCount FROM sponsorTimes WHERE userID = ?").get(userID, (err, row) => resolve({err, row}));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue