aboutsummaryrefslogtreecommitdiff
path: root/admin/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'admin/index.js')
-rw-r--r--admin/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/index.js b/admin/index.js
index 8d71896..8c9c0ae 100644
--- a/admin/index.js
+++ b/admin/index.js
@@ -54,7 +54,7 @@ app.get("/api/answers", checkAdmin, async (req, res) => {
res.json(answers);
});
-app.get("/api/votes", checkUser, async (req, res) => {
+app.get("/api/votes", async (req, res) => {
const votes = await db.query(
"SELECT m.id, m.name, m.description, SUM(votes) votes FROM motto_votes mv RIGHT JOIN mottos m on mv.motto_id = m.id GROUP BY m.id, m.name, m.description ORDER BY SUM(votes) DESC",
);