Skip to content

Commit

Permalink
[BE] fix: 공연 삭제 메서드 순서 변경하여 외래키 제약 에러 수정 (#857) (#858)
Browse files Browse the repository at this point in the history
fix: 공연 삭제 메서드 순서 변경하여 외래키 제약 에러 수정
  • Loading branch information
seokjin8678 authored Apr 14, 2024
1 parent 5071418 commit b15770a
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 b15770a

Please sign in to comment.