From 34a33bbda1736642ab1259505dfc2991535f6c95 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 16 May 2020 16:41:55 -0400 Subject: [PATCH] Fixed voting on non existent submission status in wrong spot --- src/routes/voteOnSponsorTime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/voteOnSponsorTime.js b/src/routes/voteOnSponsorTime.js index ac34e18..2e3cd1a 100644 --- a/src/routes/voteOnSponsorTime.js +++ b/src/routes/voteOnSponsorTime.js @@ -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; }