Skip to content

Commit

Permalink
fix: 공연 삭제 메서드 순서 변경하여 외래키 제약 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seokjin8678 committed Apr 12, 2024
1 parent e733da9 commit 6b636c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public class StageDeleteService {

public void deleteStage(Long stageId) {
stageRepository.findByIdWithFetch(stageId).ifPresent(stage -> {
stageRepository.deleteById(stageId);
stageArtistRepository.deleteByStageId(stageId);
stageRepository.deleteById(stageId);
eventPublisher.publishEvent(new StageDeletedEvent(stage));
});
}
Expand Down

0 comments on commit 6b636c3

Please sign in to comment.