From 073717cd1f51a1432328eb354826e176fccc2278 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 12 Aug 2019 12:34:51 -0400 Subject: [PATCH] Raised per user sponsor limit to 8 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4b020fc..de5389f 100644 --- a/index.js +++ b/index.js @@ -137,7 +137,7 @@ app.get('/api/postVideoSponsorTimes', function (req, res) { } else { //check to see if the user has already submitted sponsors for this video db.prepare("SELECT COUNT(*) as count FROM sponsorTimes WHERE userID = ? and videoID = ?").get([userID, videoID], function(err, row) { - if (row.count >= 4) { + if (row.count >= 8) { //too many sponsors for the same video from the same user res.sendStatus(429); } else {