fix: remove broken weekly report code causing syntax error
This commit is contained in:
@@ -229,18 +229,3 @@ function setupGiteaRoutes(app) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { setupGiteaRoutes };
|
module.exports = { setupGiteaRoutes };
|
||||||
|
|
||||||
// Weekly swarm status report
|
|
||||||
app.get('/api/swarm/weekly-report', async (req, res) => {
|
|
||||||
try {
|
|
||||||
const repos = await gitea.getRepos();
|
|
||||||
const tasks = await fetch(`${process.env.TASKBOARD_URL || 'http://localhost:8395'}/api/tasks`).then(r => r.json());
|
|
||||||
const agents = await fetch(`${process.env.TASKBOARD_URL || 'http://localhost:8395'}/api/agents`).then(r => r.json());
|
|
||||||
|
|
||||||
// Get usage data
|
|
||||||
const usageRes = await fetch(`${process.env.TASKBOARD_URL || 'http://localhost:8395'}/api/usage/real`);
|
|
||||||
const usage = await usageRes.json();
|
|
||||||
*Report auto-generated by OpenClaw Swarm Orchestrator*
|
|
||||||
`;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user