[FIX] UserNovel 중복 등록 방지 #329
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
Key Changes
기존에 같은 User와 Novel을 가진 UserNovel이 존재한다면 중복이 처리되도록 로직을 설계해뒀으나, 요청이 동시에 들어올 경우 중복을 처리하지 못하는 이슈가 발생하였습니다. 이에 DB 단에서 해당 중복을 방지할 수 있도록 하였습니다.
두가지 경우에 예외처리 또한 수정하였습니다.
To Reviewers
References