-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 시간표 프레임 롤백 로직 수정 #1126
fix: 시간표 프레임 롤백 로직 수정 #1126
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앗. 빠른 대응 감사합니다
고생하셨습니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아직 안드로이드 프로덕션에서 어떤 api 쓰는지 확신이 없기 때문에 우선 request change로 드리겠습니다!
|
||
User user = userRepository.getById(userId); | ||
List<TimetableFrame> frames = timetableFrameRepositoryV2.findAllByUserAndSemester(user, | ||
timetableFrame.getSemester()); | ||
|
||
if (frames.isEmpty()) { | ||
timetableFrame.updateMainFlag(true); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C
존재 하는 지만 확인 하는 것이 목표라면 지금 방식보다
jpa의 exist를 사용해서 확인하는 것이 좋지 않을까 하는데 어떻게 생각하실까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오오 좋은 의견주셔서 감사합니다 !
관련해서 찾아보니, exist는 데이터를 발견함과 동시에 true를 반환해서 성능 향상에도 도움을 준다고 하네요 !
반영하겠습니다 !
🔥 연관 이슈
🚀 작업 내용
💬 리뷰 중점사항