Skip to content

Commit

Permalink
[Fix]: 특정날짜 약 일정 조회 에러 처리 (#112)
Browse files Browse the repository at this point in the history
pillSchedule이 자신의 약이 맞는지 체크하도록 수정
특정날짜 약 일정 조회 에러 처리

Related to: #111
  • Loading branch information
onpyeong committed Mar 6, 2024
1 parent 90372d7 commit 67e5cba
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public List<DateScheduleResponse> getDateSchedule(Long userId, LocalDate date) {
List<Long> pillScheduleIds = queryFactory
.select(pillSchedule.id)
.from(pillSchedule)
.join(pill).on(pill.id.eq(pillSchedule.pillId), pill.userId.eq(userId))
.where(pillSchedule.scheduleDate.eq(date), pillSchedule.scheduleTime.eq(time))
.fetch();

Expand Down

0 comments on commit 67e5cba

Please sign in to comment.