Fixed voting on non existent submission status in wrong spot

This commit is contained in:
Ajay Ramachandran
2020-05-16 16:41:55 -04:00
parent 261432a7fd
commit 34a33bbda1

View File

@@ -270,7 +270,7 @@ module.exports = async function voteOnSponsorTime(req, res) {
let submissionUserIDInfo = db.prepare("SELECT userID FROM sponsorTimes WHERE UUID = ?").get(UUID);
if (!submissionUserIDInfo) {
// 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;
}