address audit findings: schedule validation, settings json guard, pipeline types, a11y labels
Build and Push Docker Image / build (push) Successful in 58s
Build and Push Docker Image / build (push) Successful in 58s
This commit is contained in:
@@ -95,7 +95,11 @@ app.get("/schedule", (c) => {
|
||||
|
||||
app.patch("/schedule", async (c) => {
|
||||
const body = await c.req.json<Partial<ScheduleConfig>>();
|
||||
updateScheduleConfig(body);
|
||||
try {
|
||||
updateScheduleConfig(body);
|
||||
} catch (e) {
|
||||
return c.json({ error: e instanceof Error ? e.message : String(e) }, 400);
|
||||
}
|
||||
return c.json(getScheduleConfig());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user