feat: add Watchdog recovery and drift rebuild workflows
This commit is contained in:
@@ -39,5 +39,6 @@ export async function GET({ params }: { params: { id: string } }) {
|
||||
.all(params.id);
|
||||
|
||||
const events = db().prepare('SELECT id, created_at, message FROM campaign_events WHERE deployment_id = ? ORDER BY id').all(params.id);
|
||||
return json({ deployment: dep, servers, files, scripts, events });
|
||||
const watchdog = db().prepare('SELECT incident_id FROM watchdog_actions WHERE campaign_id = ? LIMIT 1').get(params.id) as { incident_id: string } | undefined;
|
||||
return json({ deployment: dep, servers, files, scripts, events, watchdogIncidentId: watchdog?.incident_id ?? null });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user