-
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 #108] 채팅 수락/거절 API #109
Conversation
Code Coverage
|
Test Results 23 files 23 suites 13s ⏱️ Results for commit ab69788. |
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.
추석 연휴에 개발하시느라 수고 많으셨습니다~
크레딧 관련 @transactional의 격리 레벨 변경 또는 lock을 걸어도 좋을 것 같아요
동시성 제어를 할 필요가 없을 것 같은데, 트랜잭션 레벨 변경이나 락을 걸어야 하는 이유를 알려줄 수 있으실까요?? |
추가로 답변 작성하면서 다시 확인하니 현재 로직에서는 채팅 수락시 요청자의 크레딧 -2,000원 하는 로직이 빠져있네요! |
넵 채팅방 생성(채팅 요청) 시 크레딧 감소시키도록 수정했습니다! 채팅을 거절 당하면 2000원을 환급 받는 방식입니다. |
관련 이슈
📑 작업 상세 내용
대기
,수락
->대기
,수락
,거절
💫 작업 요약
🔍 중점적으로 리뷰 할 부분
요청 시 2000 크레딧을 소모하고, 거절 당한 경우 2000을 반환받도록 로직을 수정했습니다.