From 358c026d24c9f7aa1b65e1b1a17924cdaaafcaf8 Mon Sep 17 00:00:00 2001 From: julia-weppler-1 <156942916+julia-weppler-1@users.noreply.github.com> Date: Mon, 17 Aug 2026 14:23:31 -0400 Subject: [PATCH] Remove comment on auth middleware consistency Removed a comment about inconsistent auth middleware usage. --- server/routes/challenges.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/challenges.js b/server/routes/challenges.js index 8b3f23c..be7eb5e 100644 --- a/server/routes/challenges.js +++ b/server/routes/challenges.js @@ -5,7 +5,7 @@ import { usersDb } from "../db/usersDb.js"; import { requireValidId } from "../middleware/requireValidId.js"; const router = express.Router(); - +// It looks like you use auth middleware in your other routes, but not here. It is still enforced, but perhaps the code is just incosistent in where it is enforced // today as a plain YYYY-MM-DD string, so it compares directly against the // startDate/endDate strings a challenge stores (both are zero-padded ISO dates) function todayString() {