mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Fixed missing get
This commit is contained in:
parent
aad16e2359
commit
8f12cc527b
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -418,7 +418,7 @@ async function voteOnSponsorTime(req, res) {
|
||||||
//for each positive vote, see if a hidden submission can be shown again
|
//for each positive vote, see if a hidden submission can be shown again
|
||||||
if (incrementAmount > 0) {
|
if (incrementAmount > 0) {
|
||||||
//find the UUID that submitted the submission that was voted on
|
//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
|
//check if any submissions are hidden
|
||||||
let hiddenSubmissionsRow = db.prepare("SELECT count(*) as hiddenSubmissions FROM sponsorTimes WHERE userID = ? AND shadowHidden > 0").get(submissionUserID);
|
let hiddenSubmissionsRow = db.prepare("SELECT count(*) as hiddenSubmissions FROM sponsorTimes WHERE userID = ? AND shadowHidden > 0").get(submissionUserID);
|
||||||
|
|
Loading…
Reference in a new issue