Skip to content

Commit

Permalink
[fix] 플레이리스트 영화 중복 추가 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
syyling committed May 29, 2024
1 parent 95e866f commit 410cc36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void createMovieInPlaylist(MovieInPlaylistRequest.MovieInPlaylistCreateRe
Long playlistId = movieInPlaylistCreateRequest.getPlaylistId();
String tmdbId = movieInPlaylistCreateRequest.getTmdbId();
Movie movie = movieQueryService.findByTmdbId(tmdbId);
if(!movieInPlaylistQueryService.existsByPlaylistIdAndMovieId(playlistId, movie.getId())) {
if(movieInPlaylistQueryService.existsByPlaylistIdAndMovieId(playlistId, movie.getId())) {
throw new BusinessException(Error.PLAYLIST_MOVIE_DUPLICATION);
}
else {
Expand Down

0 comments on commit 410cc36

Please sign in to comment.