Attach a parsed trust receipt (JSON) to a finished run — the audit record. Best-effort.
(runId: number, receiptJson: string)
| 251 | |
| 252 | /** Attach a parsed trust receipt (JSON) to a finished run — the audit record. Best-effort. */ |
| 253 | attachReceipt(runId: number, receiptJson: string): void { |
| 254 | try { this.db.prepare(`UPDATE schedule_runs SET receipt = ? WHERE id = ?`).run(receiptJson, runId); } |
| 255 | catch { /* best-effort — a missing receipt never fails a run */ } |
| 256 | } |
| 257 | |
| 258 | recentRuns(scheduleId: string, limit = 10): ScheduleRun[] { |
| 259 | return this.db.prepare( |