release-0.3.1

This commit is contained in:
Struchkov Mark 2022-02-14 10:04:35 +03:00
parent d440002b52
commit 0c8a0afbc3
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>dev.struchkov.haiti.filter</groupId>
<artifactId>haiti-filter-quarkus-reactive</artifactId>
<version>0.3.0</version>
<version>0.3.1</version>
<packaging>jar</packaging>
<name>Haiti Filter Reactive Quarkus</name>

View File

@ -116,7 +116,7 @@ public class CriteriaFilter<T> {
totalElements, results.size(), results
)
.page(offset.getPageNumber())
.totalPages(totalElements / results.size())
.totalPages(results.isEmpty() ? offset.getPageNumber() : totalElements / results.size())
.build();
}
);