Complete provisioning job detail pages and lifecycle evidence

This commit is contained in:
2026-09-28 14:17:19 -04:00
parent 5b65520bbc
commit 3fb59cd598
41 changed files with 2866 additions and 346 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ import { redirect, error } from '@sveltejs/kit';
import { getDeployment } from '$lib/server/provisioning/index.js';
import { db } from '$lib/server/db/index.js';
export function load({ params }: { params: { id: string } }) {
const detail = getDeployment(params.id);
if (detail) return {};
const detail = getDeployment(params.id, { events: 'recent' });
if (detail) return { detail };
if (db().prepare('SELECT id FROM deployments WHERE id = ?').get(params.id)) {
redirect(307, '/campaigns/' + encodeURIComponent(params.id));
}