Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layer-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:17
FROM eclipse-temurin:17-jdk

ARG JAR_FILE=./build/libs/*.jar
ARG SPRING_PROFILE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public RetrospectListGetResponse getRetrospects(Long spaceId, Long memberId) {
Team team = new Team(memberSpaceRelationRepository.findAllBySpaceId(spaceId));
team.validateTeamMembership(memberId);

List<Retrospect> retrospects = retrospectRepository.findAllBySpaceId(spaceId);
List<Retrospect> retrospects = retrospectRepository.findAllBySpaceIdOrderByCreatedAtDesc(spaceId);
List<Long> retrospectIds = retrospects.stream().map(Retrospect::getId).toList();
Answers answers = new Answers(answerRepository.findAllByRetrospectIdIn(retrospectIds));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

public interface RetrospectRepository extends JpaRepository<Retrospect, Long> {
List<Retrospect> findAllBySpaceId(Long spaceId);
List<Retrospect> findAllBySpaceIdOrderByCreatedAtDesc(Long spaceId);

List<Retrospect> findAllBySpaceIdIn(List<Long> spaceIds);

Expand Down
Loading