From db8c2e76e5ab05ec1159f35815ada344ba9a1332 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 23 Jul 2019 18:31:42 -0400 Subject: [PATCH] Updated posting to work with extra database column. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e5e5c86..f41c9bc 100644 --- a/index.js +++ b/index.js @@ -129,7 +129,7 @@ app.get('/api/postVideoSponsorTimes', function (req, res) { if (row == null) { //not a duplicate, execute query - db.prepare("INSERT INTO sponsorTimes VALUES(?, ?, ?, ?, ?, ?, ?, ?)").run(videoID, startTime, endTime, 0, UUID, userID, hashedIP, timeSubmitted); + db.prepare("INSERT INTO sponsorTimes VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)").run(videoID, startTime, endTime, 0, UUID, userID, hashedIP, timeSubmitted, 0); res.sendStatus(200); } else {