@@ -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));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user