mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-01-29 05:40:49 +03:00
Updated posting to work with extra database column.
This commit is contained in:
2
index.js
2
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 {
|
||||
|
||||
Reference in New Issue
Block a user