Skip to content

Commit

Permalink
Merge pull request #103 from dongkyun0713/dongkyun
Browse files Browse the repository at this point in the history
test() : 채택 테스트
  • Loading branch information
dongkyun0713 authored Feb 26, 2024
2 parents 9e76f09 + 57a03f6 commit d7ad4ab
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ public ResponseEntity<AnswerDTO.Response> createAnswer(@RequestBody AnswerDTO.Re
@ApiResponse(responseCode = "200", description = "답변 채택 성공"),
@ApiResponse(responseCode = "404", description = "답변을 찾을 수 없음")
})
public ResponseEntity<String> acceptAnswer(@PathVariable("answerId") Long answerId,
@RequestBody Long questionId) {
public ResponseEntity<String> acceptAnswer(Long questionId, @PathVariable("answerId") Long answerId) {
String currentEmail = SecurityContextHolder.getContext().getAuthentication().getName();
User currentUser = userRepository.findByEmail(currentEmail)
.orElseThrow(() -> new CustomException(ErrorCode.USER_NOT_FOUND));
Expand Down

0 comments on commit d7ad4ab

Please sign in to comment.