1
0

feat: Background color fetching
All checks were successful
Remote Deploy / deploy (push) Successful in 6s

This commit is contained in:
2026-02-10 21:36:53 +01:00
parent cfdd97c935
commit de7ac3a48d
4 changed files with 133 additions and 14 deletions

View File

@@ -91,7 +91,7 @@ app.post("/report", async (req, res) => {
if (!className || !location || !content) {
return res.status(400).json({ error: "Missing required fields." });
}
if (!["TIMETABLE", "ABSENCES", "OTHER"].includes(location)) {
if (!["TIMETABLE", "ABSENCES", "ABSENCE", "TAKES_PLACE", "OTHER"].includes(location)) {
return res.status(400).json({ error: "Invalid location value." });
}