wulf-pulse/app/api/phishing
lorentz 9951e53832 fix(260716-n46): clamp blast-radius date window and resolve per-company Mimecast tenant
Bug 1: clamp dateWindow.end to Math.min(createdAt + 24h, Date.now()) so a
freshly-detected campaign (<24h old primary report) never sends Mimecast a
future end-date -- previously rejected as err_track_and_trace_invalid_end_date
and swallowed internally as a false-clean zero-count result.

Bug 2 (D-05): add company_id to the reports SELECT and, when the reporting
company has its own enabled mimecast_tenants row, resolve a tenant-scoped
client via getMimecastClientForTenant() and thread it into getBlastRadius as
{ client, cacheScope: companyId }. Falls back to the global env-configured
client when no company-specific tenant is registered.
2026-07-16 16:47:19 -04:00
..
campaigns fix(260716-n46): clamp blast-radius date window and resolve per-company Mimecast tenant 2026-07-16 16:47:19 -04:00
reports/[report_id] feat(22-06): ticket-scoped LiveLink review page (REVIEW-01,05,06) 2026-07-16 14:58:39 -04:00
tickets/[ticket_id] feat(22-02): add ticket->campaign resolver route 2026-07-16 14:41:06 -04:00