From b23a49a78ddddd51c59660b6583b02a698bfafce Mon Sep 17 00:00:00 2001 From: Jordan Ramos Date: Fri, 29 May 2026 12:27:25 -0600 Subject: [PATCH] Sync enrich-batch JSDoc with both-team and candidate search behavior The enrich-batch handler was updated in df62e13 to search both NTS-AEO-STEAM and NTS-AEO-ACCESS-ENG across confirmed, unconfirmed, and candidate dispositions, but the JSDoc comment still described the old single-team, two-disposition behavior. Update the comment to match. --- backend/routes/cardApi.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/routes/cardApi.js b/backend/routes/cardApi.js index 620e8b7..f377b9f 100644 --- a/backend/routes/cardApi.js +++ b/backend/routes/cardApi.js @@ -556,11 +556,13 @@ function createCardApiRouter() { * POST /enrich-batch * * Batch lookup IPs in CARD to extract Granite loader fields. Fetches team - * assets (paginated, across confirmed and unconfirmed dispositions) and - * matches against the provided IPs. Returns enrichment results for each IP. + * assets (paginated, across confirmed, unconfirmed, and candidate + * dispositions) and matches against the provided IPs. When no team is + * specified, searches both NTS-AEO-STEAM and NTS-AEO-ACCESS-ENG. + * Returns enrichment results for each IP. * * @body {string[]} ips - Non-empty array of IP address strings (max 200) - * @body {string} [team="NTS-AEO-STEAM"] - Team name to search assets under + * @body {string} [team] - Team name to search assets under. Defaults to both NTS-AEO-STEAM and NTS-AEO-ACCESS-ENG if omitted. * @response 200 - { results: object[], enriched_count: number, not_found_count: number, total: number } * Each result: { ip: string, found: boolean, equip_inst_id: string|null, hostname: string|null, site_name?: string|null, mgmt_ip_asn?: string|null, responsible_team?: string|null, equipment_class?: string, equip_template?: string|null, equip_status?: string|null, serial_number?: string|null, error?: string } * @response 400 - { error: string } — invalid or empty ips array, or exceeds 200