From 3679ecbfbc8c9de146d9177f91c0050a9ea68e67 Mon Sep 17 00:00:00 2001 From: Aviral Verma Date: Wed, 23 Aug 2023 01:02:18 +0530 Subject: [PATCH] Attempts last --- .../src/main/java/com/rupeesense/fi/fiu/FIUService.java | 6 +++--- .../main/java/com/rupeesense/fi/repo/RepositoryFacade.java | 2 +- .../java/com/rupeesense/fi/repo/TransactionRepository.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fiu-core/src/main/java/com/rupeesense/fi/fiu/FIUService.java b/fiu-core/src/main/java/com/rupeesense/fi/fiu/FIUService.java index 57ce921..4676306 100644 --- a/fiu-core/src/main/java/com/rupeesense/fi/fiu/FIUService.java +++ b/fiu-core/src/main/java/com/rupeesense/fi/fiu/FIUService.java @@ -174,9 +174,9 @@ public void getAndSaveData(Session session) { repositoryFacade.saveAccount(account); // Create and fill transaction details Set 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); diff --git a/fiu-dal/src/main/java/com/rupeesense/fi/repo/RepositoryFacade.java b/fiu-dal/src/main/java/com/rupeesense/fi/repo/RepositoryFacade.java index 80b5bd4..dc5ebb6 100644 --- a/fiu-dal/src/main/java/com/rupeesense/fi/repo/RepositoryFacade.java +++ b/fiu-dal/src/main/java/com/rupeesense/fi/repo/RepositoryFacade.java @@ -39,7 +39,7 @@ public Optional getAccountIfItExists(String fipID, String userId, Strin } public List getTransactionsForAccountAndUser(String accountId, String userId) { - return transactionRepository.getTransactionByAccountIdAndUserId(accountId, userId); + return transactionRepository.getTransactionByAccountAndUserId(accountId, userId); } diff --git a/fiu-dal/src/main/java/com/rupeesense/fi/repo/TransactionRepository.java b/fiu-dal/src/main/java/com/rupeesense/fi/repo/TransactionRepository.java index cb0d7bd..2cd4b68 100644 --- a/fiu-dal/src/main/java/com/rupeesense/fi/repo/TransactionRepository.java +++ b/fiu-dal/src/main/java/com/rupeesense/fi/repo/TransactionRepository.java @@ -7,6 +7,6 @@ public interface TransactionRepository extends JpaRepository { - List getTransactionByAccountIdAndUserId(String accountId, String userId); + List getTransactionByAccountAndUserId(String accountId, String userId); }