diff --git a/src/main/java/it/gov/pagopa/bizeventsservice/service/impl/TransactionService.java b/src/main/java/it/gov/pagopa/bizeventsservice/service/impl/TransactionService.java index 75f34417..97f0085b 100644 --- a/src/main/java/it/gov/pagopa/bizeventsservice/service/impl/TransactionService.java +++ b/src/main/java/it/gov/pagopa/bizeventsservice/service/impl/TransactionService.java @@ -120,7 +120,7 @@ public TransactionListResponse getCachedTransactionList(String taxCode, Integer .limit(size) .page(page) .itemsFound(pagedListOfViewUser.stream().mapToInt(i -> i.size()).sum()) - .totalPages(pagedListOfViewUser.size() - 1) + .totalPages(pagedListOfViewUser.size()) .build()) .build(); }