Skip to content

[refactor] 이벤트 참여 DB 락 로직 수정#289

Merged
3uomlkh merged 2 commits intodevfrom
feat/event
May 27, 2025
Merged

[refactor] 이벤트 참여 DB 락 로직 수정#289
3uomlkh merged 2 commits intodevfrom
feat/event

Conversation

@3uomlkh
Copy link
Copy Markdown
Contributor

@3uomlkh 3uomlkh commented May 22, 2025

🔗 Issue Number

close #288

📝 작업 내역

  • Event 엔티티에 현재 참여 가능 인원(availableSeats) 필드 추가
  • limitPeople 수정 시 availableSeats도 수정
  • decreaseAvailableSeats() 메서드 추가
  • 이벤트 참가 가능 인원 체크를 도메인 메서드로 변경

💡 PR 특이사항

우선 해당 구조가 더 맞다고 생각해서 수정했지만, 현재 프로젝트 내에서는 잘 동작하지 않는 것 같습니다.
테스트가 정상적으로 되는지 확인부탁드립니다!

3uomlkh added 2 commits May 20, 2025 16:57
### 변경점

- Event 엔티티에 현재 참여 가능 인원(availableSeats) 필드 추가
- limitPeople 수정 시 availableSeats도 수정
- decreaseAvailableSeats() 메서드 추가
### 변경점
- decreaseAvailableSeat() 메서드 추가
- 해당 메서드 내에서 정원 감소 및 확인 진행
@3uomlkh 3uomlkh merged commit b20d02c into dev May 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] 이벤트 참여 DB 락 로직 수정

1 participant