From 8f12cc527b75df541498ab4743d23c2b2020c9c7 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 25 Jan 2020 12:07:20 -0500 Subject: [PATCH] Fixed missing get --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c902707..e0c993f 100644 --- a/index.js +++ b/index.js @@ -418,7 +418,7 @@ async function voteOnSponsorTime(req, res) { //for each positive vote, see if a hidden submission can be shown again if (incrementAmount > 0) { //find the UUID that submitted the submission that was voted on - let submissionUserID = db.prepare("SELECT userID FROM sponsorTimes WHERE UUID = ?").userID; + let submissionUserID = db.prepare("SELECT userID FROM sponsorTimes WHERE UUID = ?").get(UUID).userID; //check if any submissions are hidden let hiddenSubmissionsRow = db.prepare("SELECT count(*) as hiddenSubmissions FROM sponsorTimes WHERE userID = ? AND shadowHidden > 0").get(submissionUserID);