fix(tasks): serialize no-result decisions with finding writes

This commit is contained in:
ji ruo committed 2026-11-11 15:20:58 +08:00
1 parent 8e030b1fbd
commit 3306e547b2
11 files changed
+369 -37

No files matched your search

+1
View File
@@ -2102,6 +2102,7 @@ function route(m: string, path: string, seg: string[], q: URLSearchParams, b: Re
task_name: owner?.name ?? "",
task_description: owner?.description ?? items[0]?.task_description ?? "",
task_status: owner?.status ?? "",
task_stop_reason: owner?.stop_reason ?? "",
count: items.length,
critical: items.filter((finding) => finding.severity === "critical").length,
high: items.filter((finding) => finding.severity === "high").length,