Merge branch 'BE/userinfo' into 'backend'
feat:qna 수정 See merge request s11-webmobile1-sub2/S11P12A701!91
This commit is contained in:
commit
60d6f35928
@ -71,7 +71,7 @@ public class QnaController {
|
||||
User findUser = userRepository.findById(userId).orElse(null);
|
||||
|
||||
if (findUser.getRole() != UserRole.ADMIN) {
|
||||
throw new RuntimeException();
|
||||
throw new RuntimeException("update 실패");
|
||||
}
|
||||
|
||||
QnaResponseDto responseDto = qnaService.updateAnswer(qna_id, qnaRequestDto);
|
||||
|
Loading…
Reference in New Issue
Block a user