aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/encora
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/encora')
-rw-r--r--src/main/java/com/encora/Main.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/encora/Main.java b/src/main/java/com/encora/Main.java
index 5aaede6..7793be9 100644
--- a/src/main/java/com/encora/Main.java
+++ b/src/main/java/com/encora/Main.java
@@ -231,7 +231,7 @@ public class Main {
@CrossOrigin(origins=allowed_origin)
@GetMapping("/todos/filtSort/pages")
@ResponseStatus(value=HttpStatus.OK)
- public Integer getNumberOfPages(@RequestBody filtersAndSorters filAndSor) {
+ public Integer getNumberOfPages() {
// Number of items divided by page size.
final int pageSize = 10;
return (int) Math.ceil((double) toDosRepository.filteredToDos.size() / pageSize);