Skip to content

Commit

Permalink
Fix [#147] 홈뷰 전체조회 API 태스크 Id 내림차순으로 정렬 (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
geniusYoo authored Jul 18, 2024
2 parents 8fd891c + b500dcb commit 52f496c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

@Slf4j
Expand Down Expand Up @@ -59,6 +60,7 @@ public List<FilteredResourceResponse> getAllResources(LocalDate startDate, Local
taskWithTaskTimerList.add(TaskWithTaskTimer.ofByInit(task, taskTimerService.getTaskTimeByTaskId(3L, idxDate, task.id()), task.isComplete()));
}
}
taskWithTaskTimerList.sort(Comparator.comparing(TaskWithTaskTimer::id).reversed());
target.categoryTaskLinkList().add(CategoryTaskLink.of(categoryTaskLink.categoryCheckResponse(), taskWithTaskTimerList));
}
}
Expand Down

0 comments on commit 52f496c

Please sign in to comment.