FINERACT-2278: Rework raiseBusinessEventForAccrualTransactions to not use loan.getLoanTransactions()

This commit is contained in:
mariiaKraievska
2025-05-26 16:24:56 +02:00
committed by Adam Saghy
parent 8b86229a3e
commit 07839951b9
3 changed files with 37 additions and 12 deletions
@@ -196,9 +196,8 @@ public class LoanAccountConfiguration {
@Bean
@ConditionalOnMissingBean(LoanAccrualTransactionBusinessEventService.class)
public LoanAccrualTransactionBusinessEventService loanAccrualTransactionBusinessEventService(
BusinessEventNotifierService businessEventNotifierService) {
return new LoanAccrualTransactionBusinessEventServiceImpl(businessEventNotifierService);
final BusinessEventNotifierService businessEventNotifierService, final LoanTransactionRepository loanTransactionRepository) {
return new LoanAccrualTransactionBusinessEventServiceImpl(businessEventNotifierService, loanTransactionRepository);
}
@Bean