release-0.3.1
This commit is contained in:
parent
d440002b52
commit
0c8a0afbc3
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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();
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user