From 2cbeb50927fee6c94c7cc882fbe8e478d2086892 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 25 May 2020 22:22:53 -0400 Subject: [PATCH] Raise max submissions per user to 16 --- 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 e178ee6..c20bb24 100644 --- a/src/routes/postSkipSegments.js +++ b/src/routes/postSkipSegments.js @@ -200,7 +200,7 @@ module.exports = async function postSkipSegments(req, res) { //check to see if the user has already submitted sponsors for this video let duplicateCheckRow = db.prepare("SELECT COUNT(*) as count FROM sponsorTimes WHERE userID = ? and videoID = ?").get([userID, videoID]); - if (duplicateCheckRow.count >= 8) { + if (duplicateCheckRow.count >= 16) { //too many sponsors for the same video from the same user res.sendStatus(429);