feat: qna 기능수정

This commit is contained in:
박정민 2024-08-02 13:41:07 +09:00
parent 788eddc4a5
commit b22009ef75
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -141,6 +141,6 @@ qnaRepository.deleteById(id);
Qna findQna = qnaRepository.findById(id).orElse(null);
findQna.setAnswer(null);
qnaRepository.save(findQna);
}
}