From 8b959793d71dd991a8436644aa82cf8510ec69a8 Mon Sep 17 00:00:00 2001 From: jhkim Date: Sat, 17 Jun 2023 14:41:58 +0900 Subject: [PATCH] =?UTF-8?q?#216:=20solvedcode=EB=82=B4=EC=9A=A9=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rising/backend/domain/post/controller/PostController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/com/rising/backend/domain/post/controller/PostController.java b/backend/src/main/java/com/rising/backend/domain/post/controller/PostController.java index 797579a..41e033a 100644 --- a/backend/src/main/java/com/rising/backend/domain/post/controller/PostController.java +++ b/backend/src/main/java/com/rising/backend/domain/post/controller/PostController.java @@ -98,8 +98,8 @@ public ResponseEntity update( @PutMapping("/{postId}/solve") public ResponseEntity 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)); }