Skip to content

Commit

Permalink
Merge pull request #219 from tukcom2023CD/BE/hotfix/#216
Browse files Browse the repository at this point in the history
#216: solvedcode내용 추가
  • Loading branch information
kjeongh authored Jun 17, 2023
2 parents 8c29373 + 8b95979 commit 3ac5753
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public ResponseEntity<ResultResponse> update(
@PutMapping("/{postId}/solve")
public ResponseEntity<ResultResponse> solve(
@PathVariable Long postId,
@RequestBody String solvedCode) {
postService.solve(postId, solvedCode);
@RequestBody PostDto.SolvedCodeRequest solvedCode) {
postService.solve(postId, solvedCode.getSolvedCode());
return ResponseEntity.ok(ResultResponse.of(ResultCode.POST_SOLVED));

}
Expand Down

0 comments on commit 3ac5753

Please sign in to comment.