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

This commit is contained in:
2026-05-05 14:22:17 +07:00
parent 352fe2c5cf
commit c9e95edf1d
@@ -117,6 +117,14 @@ public class DockViewService {
public DockViewStatsResponse getOpenLastHistory(int page, int size, String sortDirection, String sortBy, public DockViewStatsResponse getOpenLastHistory(int page, int size, String sortDirection, String sortBy,
List<String> fileIds) { List<String> fileIds) {
if (sortDirection == null || sortDirection.isEmpty()) {
sortDirection = "desc";
}
if (sortBy == null || sortBy.isEmpty()) {
sortBy = "createdAt";
}
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));