Skip to content

Commit f3c1689

Browse files
authored
Merge pull request #167 from Money-Touch/fix/#159
Chore: 소비 루틴 미리보기 시 자신의 소비루틴일 경우 예외 제거
2 parents f5b0620 + 4c116e1 commit f3c1689

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/com/server/money_touch/domain/routine/service/RoutineQueryServiceImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ public RoutineResponse.ApplyRoutineInfoDTO getRoutineApplyInfo(Long userId, Long
165165
Routine routine = routineRepository.findById(routineId)
166166
.orElseThrow(() -> new ErrorHandler(ErrorStatus.ROUTINE_NOT_FOUND));
167167

168-
if (routine.getUser().getId().equals(userId)) {
169-
throw new ErrorHandler(ErrorStatus.ROUTINE_PREVIEW_NOT_ALLOWED);
170-
}
168+
// if (routine.getUser().getId().equals(userId)) {
169+
// throw new ErrorHandler(ErrorStatus.ROUTINE_PREVIEW_NOT_ALLOWED);
170+
// }
171171

172172
// 3. 해당 루틴의 예산 생성 월 기준으로 내 예산 조회
173173
Budget myBudget = budgetRepository.findByUserAndCreatedMonth(user, routine.getBudget().getCreatedMonth())

0 commit comments

Comments
 (0)