fix: remove broken weekly report code causing syntax error

This commit is contained in:
2026-03-05 13:24:00 -08:00
parent 9bbfd97c86
commit 229cfba270

View File

@@ -229,18 +229,3 @@ function setupGiteaRoutes(app) {
}
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*
`;
}