Skip to content

Commit

Permalink
Merge pull request #93 from road-found-in-the-text/feature/#90/error_fix
Browse files Browse the repository at this point in the history
Feature/#90/error fix
  • Loading branch information
myhyun0002 authored Feb 8, 2023
2 parents 983de60 + eb227ee commit fcd3117
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public class InterviewService {
@Autowired
private final InterviewResponseDto interviewResponse;

@Autowired
private final MemoService memoService;

public ResponseEntity<?> writeInterview(InterviewRequestDto.Register interview1) {

Interview interview=Interview.builder()
Expand Down Expand Up @@ -78,6 +81,9 @@ public String removeInterview(Long id){
deletedInterview.setDeleted(true);
interviewRepository.save(deletedInterview);

// interview에 속해있는 memo도 같이 삭제해야 하기 때문에 코드 추가했습니다.
memoService.deleteMemo("interview",id);

return id+" deleted success";
}
return null;
Expand Down

0 comments on commit fcd3117

Please sign in to comment.