Skip to content

Commit 3dbaff5

Browse files
authored
Merge pull request #39 from YAPP-Github/feat/T3-126
[T3-126] 루틴 조회 시 불필요한 응답값 제거
2 parents b0c87f8 + ff3b9cb commit 3dbaff5

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

src/main/java/bitnagil/bitnagil_backend/routine/response/RoutineSearchResponse.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,4 @@
1717
public class RoutineSearchResponse {
1818
@Schema(description = "날짜(LocalDate: 2025-07-01)와 같은 형태를 key로 가지는 루틴 목록 Map입니다. Swagger에서는 additionalProp1처럼 보일 수 있습니다.")
1919
private Map<LocalDate, List<RoutineSearchResultDto>> routines; // 날짜별 루틴 목록
20-
@Schema(description = "회원명", example = "홍길동")
21-
private String nickname; // 회원명
22-
@Schema(description = "감정 구슬 타입", example = "CALM")
23-
private EmotionMarbleType emotionMarbleType; // 감정 구슬 타입
2420
}

src/main/java/bitnagil/bitnagil_backend/routine/service/RoutineService.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,8 @@ private RoutineSearchResponse queryRoutines(User user, LocalDate startDate, Loca
269269
-> a.getExecutionTime().compareTo(b.getExecutionTime()));
270270
}
271271

272-
// 감정구슬 조회
273-
EmotionMarble emotionMarble = emotionMarbleRepository.findByUserIdAndDateIs(user.getUserPk().getId(), LocalDate.now());
274-
275272
return RoutineSearchResponse.builder()
276273
.routines(routinesByDateResponse)
277-
.emotionMarbleType(emotionMarble == null ? null : emotionMarble.getEmotionMarbleType())
278-
.nickname(user.getNickname())
279274
.build();
280275
}
281276

0 commit comments

Comments
 (0)