fix(bridge): audit cron source counts only 'finished' run actions
This commit is contained in:
parent
50a6520c20
commit
7e352eea7b
1 changed files with 2 additions and 0 deletions
|
|
@ -165,6 +165,8 @@ function cronEvents(): AuditEvent[] {
|
|||
} catch {
|
||||
continue;
|
||||
}
|
||||
// Run files log lifecycle actions; only "finished" carries the outcome.
|
||||
if (run.action && run.action !== "finished") continue;
|
||||
const ts = run.startedAt ?? run.ts ?? run.runAtMs ?? run.timestamp;
|
||||
if (!ts) continue;
|
||||
const iso = typeof ts === "number" ? new Date(ts).toISOString() : toIso(String(ts));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue