feat: Background color fetching
All checks were successful
Remote Deploy / deploy (push) Successful in 6s
All checks were successful
Remote Deploy / deploy (push) Successful in 6s
This commit is contained in:
@@ -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." });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user