mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-18 21:48:29 +03:00
Fixed voting on non existent submission status in wrong spot
This commit is contained in:
@@ -270,7 +270,7 @@ module.exports = async function voteOnSponsorTime(req, res) {
|
|||||||
let submissionUserIDInfo = db.prepare("SELECT userID FROM sponsorTimes WHERE UUID = ?").get(UUID);
|
let submissionUserIDInfo = db.prepare("SELECT userID FROM sponsorTimes WHERE UUID = ?").get(UUID);
|
||||||
if (!submissionUserIDInfo) {
|
if (!submissionUserIDInfo) {
|
||||||
// They are voting on a non-existent submission
|
// They are voting on a non-existent submission
|
||||||
res.status("Voting on a non-existent submission").send(400);
|
res.status(400).send("Voting on a non-existent submission");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user