Skip to content

Commit

Permalink
[PAGOPA-1797] paging and caching: total pages = list.size
Browse files Browse the repository at this point in the history
  • Loading branch information
aacitelli authored and aacitelli committed Jun 12, 2024
2 parents b6c0a4a + 1585770 commit ecaa48d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit ecaa48d

Please sign in to comment.