From a316403bb52f9ddc155653a28cf99cab4783224a Mon Sep 17 00:00:00 2001 From: Michael C Date: Tue, 19 Oct 2021 23:22:13 -0400 Subject: [PATCH] quote for postgres --- src/routes/voteOnSponsorTime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/voteOnSponsorTime.ts b/src/routes/voteOnSponsorTime.ts index 74d506e..e6e41ea 100644 --- a/src/routes/voteOnSponsorTime.ts +++ b/src/routes/voteOnSponsorTime.ts @@ -60,7 +60,7 @@ function getYouTubeVideoInfo(videoID: VideoID, ignoreCache = false): Promise (APIDuration > 0 && Math.abs(segmentDuration - APIDuration) > 2); async function checkVideoDurationChange(UUID: SegmentUUID) { - const row = await db.prepare("get", `select videoDuration, videoID, service from "sponsorTimes" where "UUID" = ?`, [UUID]); + const row = await db.prepare("get", `select "videoDuration", "videoID", "service" from "sponsorTimes" where "UUID" = ?`, [UUID]); const { videoDuration, videoID, service } = row; let apiVideoInfo: APIVideoInfo = null; if (service == Service.YouTube) {