Skip to content

Commit

Permalink
Attempts last
Browse files Browse the repository at this point in the history
  • Loading branch information
avirlrma committed Aug 22, 2023
1 parent e8cf995 commit 3679ecb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions fiu-core/src/main/java/com/rupeesense/fi/fiu/FIUService.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ public void getAndSaveData(Session session) {
repositoryFacade.saveAccount(account);
// Create and fill transaction details
Set<Transaction> transactions = new HashSet<>();
if (StringUtils.hasLength(account.getAccountId())) {
transactions.addAll(repositoryFacade.getTransactionsForAccountAndUser(account.getAccountId(), session.getUserId()));
}
// if (StringUtils.hasLength(account.getAccountId())) {
// transactions.addAll(repositoryFacade.getTransactionsForAccountAndUser(account.getAccountId(), session.getUserId()));
// }
for (SetuDataResponse.Transactions.Transaction transactionData : accountData.getTransactions().getTransaction()) {
Transaction transaction = new Transaction();
transaction.setAccount(account);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Optional<Account> getAccountIfItExists(String fipID, String userId, Strin
}

public List<Transaction> getTransactionsForAccountAndUser(String accountId, String userId) {
return transactionRepository.getTransactionByAccountIdAndUserId(accountId, userId);
return transactionRepository.getTransactionByAccountAndUserId(accountId, userId);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

public interface TransactionRepository extends JpaRepository<Transaction, String> {

List<Transaction> getTransactionByAccountIdAndUserId(String accountId, String userId);
List<Transaction> getTransactionByAccountAndUserId(String accountId, String userId);

}

0 comments on commit 3679ecb

Please sign in to comment.