Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review: include weekdaysOnly in job update allowlist

Adam Eivy67d3e4c7c7bf
diff --git a/server/routes/cos.js b/server/routes/cos.js
index e9dbe82c4a..dd5c0936d0 100644
--- a/server/routes/cos.js
+++ b/server/routes/cos.js
@@ -912,10 +912,10 @@ router.post('/jobs', asyncHandler(async (req, res) => {
// PUT /api/cos/jobs/:id - Update a job
router.put('/jobs/:id', asyncHandler(async (req, res) => {
const { name, description, category, type, interval, intervalMs, scheduledTime,
- enabled, priority, autonomyLevel, promptTemplate, command, triggerAction } = req.body;
+ enabled, priority, autonomyLevel, promptTemplate, command, triggerAction, weekdaysOnly } = req.body;
const job = await autonomousJobs.updateJob(req.params.id, {
name, description, category, type, interval, intervalMs, scheduledTime,
- enabled, priority, autonomyLevel, promptTemplate, command, triggerAction
+ enabled, priority, autonomyLevel, promptTemplate, command, triggerAction, weekdaysOnly
});
if (!job) {
throw new ServerError('Job not found', { status: 404, code: 'NOT_FOUND' });