feat:qna 수정
This commit is contained in:
parent
3df25f872f
commit
25f7343b04
@ -71,7 +71,7 @@ public class QnaController {
|
|||||||
User findUser = userRepository.findById(userId).orElse(null);
|
User findUser = userRepository.findById(userId).orElse(null);
|
||||||
|
|
||||||
if (findUser.getRole() != UserRole.ADMIN) {
|
if (findUser.getRole() != UserRole.ADMIN) {
|
||||||
throw new RuntimeException();
|
throw new RuntimeException("update 실패");
|
||||||
}
|
}
|
||||||
|
|
||||||
QnaResponseDto responseDto = qnaService.updateAnswer(qna_id, qnaRequestDto);
|
QnaResponseDto responseDto = qnaService.updateAnswer(qna_id, qnaRequestDto);
|
||||||
|
Loading…
Reference in New Issue
Block a user