-
Notifications
You must be signed in to change notification settings - Fork 0
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
[feat #134] 채팅 요청 자동 거절 스케줄러 #135
Conversation
Code Coverage
|
Test Results 25 files 25 suites 16s ⏱️ Results for commit 1320537. ♻️ This comment has been updated with latest results. |
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.
고생하셨습니다!
채팅 거절 시 반환(환급)되는 크레딧 내역도 있어야 되지 않을까 싶었는데, 먼저 잘 구현해주셨네요!
회원 크레딧 환급 함수 및 회원 크레딧 내역 추가 함수 memberRepository로 이동할지
음.. 저의 생각은 이동한다면 creditHistoryRepository가 더 알맞지 않나 싶은 생각이 있네요..!
.where(member.id.in(memberIds)) | ||
.execute(); | ||
} | ||
|
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.
updateChatRoomStatusRejected(), refundInMemberIds()을 호출하는 상위 메서드 ChatScheduler.rejectChatRequest()에 트랜잭션이 생성되어 있는데 한번 더 붙이셨네요?
중복인것 같습니다!
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.
bulk update를 하는 repository 함수라서 transactional을 걸고,
scheduler에서 하나라도 잘못 되면 rollback하기 위해 transactional을 걸었습니다..!
scheduler 메서드에 해당 어노테이션을 거는게 맞는지 더 고민해봐야겠네요,,,
.select(chatRoom.inquirer.id) | ||
.from(chatRoom) | ||
.where( | ||
chatRoom.createdAt.loe(LocalDateTime.now().minusWeeks(1)), |
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.
loe 문법을 잘 몰라서 찾아보니 less than or equal 약어군요?
하나 배워갑니다..!
관련 이슈
📑 작업 상세 내용
💫 작업 요약
🔍 중점적으로 리뷰 할 부분