* Helper to parse and validate a numeric ID parameter
(id: string)
| 76 | * Helper to parse and validate a numeric ID parameter |
| 77 | */ |
| 78 | function parseNumericId(id: string): number | null { |
| 79 | const parsed = parseInt(id, 10); |
| 80 | return isNaN(parsed) || parsed <= 0 ? null : parsed; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Extract a stable label for who triggered an admin-triage decision. Prefers |
no outgoing calls
no test coverage detected