feat: qna 기능수정
This commit is contained in:
parent
788eddc4a5
commit
b22009ef75
@ -68,7 +68,7 @@ public class QnaController {
|
||||
}
|
||||
}
|
||||
|
||||
@DeleteMapping("/answer/delete/{qna_id}")
|
||||
@PostMapping("/answer/delete/{qna_id}")
|
||||
public ResponseEntity<QnaResponseDto> deleteAnswer(@PathVariable("qna_id") Long qna_id)
|
||||
{
|
||||
try {
|
||||
|
@ -141,6 +141,6 @@ qnaRepository.deleteById(id);
|
||||
Qna findQna = qnaRepository.findById(id).orElse(null);
|
||||
findQna.setAnswer(null);
|
||||
qnaRepository.save(findQna);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user