@@ -125,6 +125,13 @@ public class DockViewService {
|
||||
sortBy = "createdAt";
|
||||
}
|
||||
|
||||
if (page < 0) {
|
||||
page = 0;
|
||||
}
|
||||
if (size < 1) {
|
||||
size = 10;
|
||||
}
|
||||
|
||||
Pageable pageable = PageRequest.of(page, size,
|
||||
Sort.by(Sort.Direction.fromString(sortDirection), sortBy));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user