mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
quote for postgres
This commit is contained in:
parent
0ff38b918b
commit
df6c76ede9
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ async function checkVideoDuration(UUID: SegmentUUID) {
|
|||
if (videoDurationChanged(latestSubmission.videoDuration, apiVideoDuration)) {
|
||||
Logger.info(`Video duration changed for ${videoID} from ${latestSubmission.videoDuration} to ${apiVideoDuration}`);
|
||||
await db.prepare("run", `UPDATE "sponsorTimes" SET "hidden" = 1
|
||||
WHERE videoID = ? AND service = ? AND timeSubmitted <= ?
|
||||
WHERE "videoID" = ? AND "service" = ? AND "timeSubmitted" <= ?
|
||||
AND "hidden" = 0 AND "shadowHidden" = 0 AND
|
||||
"actionType" != 'full' AND "votes" > -2`,
|
||||
[videoID, service, latestSubmission.timeSubmitted]);
|
||||
|
|
Loading…
Reference in a new issue