dev add method link
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-05-05 14:36:30 +07:00
parent c9e95edf1d
commit cdc45e400d
@@ -125,6 +125,13 @@ public class DockViewService {
sortBy = "createdAt"; sortBy = "createdAt";
} }
if (page < 0) {
page = 0;
}
if (size < 1) {
size = 10;
}
Pageable pageable = PageRequest.of(page, size, Pageable pageable = PageRequest.of(page, size,
Sort.by(Sort.Direction.fromString(sortDirection), sortBy)); Sort.by(Sort.Direction.fromString(sortDirection), sortBy));