Problem
In loans.service.ts (lines 110, 644), getReputationScore() is called in both createLoan() and runCreditAssessment(), resulting in 2 API calls for the same data.
What To Build
- Pass reputation score from credit assessment to createLoan
- Or cache the result within the request scope
- Measure and verify the reduction
Files To Touch
- src/modules/loans/loans.service.ts — lines 110, 644 deduplicate
Acceptance Criteria
Mandatory Checks
Problem
In loans.service.ts (lines 110, 644), getReputationScore() is called in both createLoan() and runCreditAssessment(), resulting in 2 API calls for the same data.
What To Build
Files To Touch
Acceptance Criteria
Mandatory Checks