diff --git a/api/src/routes/fcc-lookup.ts b/api/src/routes/fcc-lookup.ts index cca1a12..1c1c85d 100644 --- a/api/src/routes/fcc-lookup.ts +++ b/api/src/routes/fcc-lookup.ts @@ -291,8 +291,11 @@ router.get("/api/v1/fcc/lookup", async (req, res) => { ); if (auditRow.rows.length > 0) { const audit = auditRow.rows[0] as Record; - const pChecks = (audit.pdf_checks as Array<{ label: string; severity: string }>) || []; - for (const pc of pChecks) { + // Merge both structured and PDF audit checks + const pChecks = (audit.pdf_checks as Array<{ id?: string; label: string; severity: string }>) || []; + const sChecks = (audit.structured_checks as Array<{ id?: string; label: string; severity: string }>) || []; + for (const pc of [...sChecks, ...pChecks]) { + if (pc.severity === "minor") continue; // only show major/critical if (pc.label && !rmdIssues.some(i => i.label === pc.label)) { rmdIssues.push(pc); }