Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Why this matters
The API-key admin mutations (check-defaults, reindex, webhooks) attach auditLog, but the JWT-protected dispute endpoints POST /disputes/:disputeId/resolve and /disputes/:disputeId/reject in src/routes/adminRoutes.ts have no auditLog even though they change loan default status.
Acceptance criteria
Files to touch
- src/routes/adminRoutes.ts
- src/middleware/auditLog.ts
- src/controllers/adminDisputeController.ts
Out of scope
- Audit log retention policy
- Audit log query UI
Why this matters
The API-key admin mutations (check-defaults, reindex, webhooks) attach auditLog, but the JWT-protected dispute endpoints POST /disputes/:disputeId/resolve and /disputes/:disputeId/reject in src/routes/adminRoutes.ts have no auditLog even though they change loan default status.
Acceptance criteria
Files to touch
Out of scope