Skip to content

Commit

Permalink
fix : 자기소개 업데이트시 필드값을 인식못하는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thalals committed Aug 3, 2024
1 parent 420c5b1 commit 3ba755e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.tht.thtapis.facade.user.request;

public record ModifiedIntroductionRequest(
String introduction
) {
}
4 changes: 2 additions & 2 deletions tht-apis/src/main/java/com/tht/thtapis/ui/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ public ResponseEntity<TokenDto> updateNickName(
@PatchMapping("/user/introduction")
public ResponseEntity<Object> updateSelfIntroduce(
@AuthenticationPrincipal final User user,
@RequestBody final String introduction) {
@RequestBody final ModifiedIntroductionRequest request) {

userFacade.updateIntroduction(user, introduction);
userFacade.updateIntroduction(user, request.introduction());
return ResponseEntity.ok().build();
}

Expand Down

0 comments on commit 3ba755e

Please sign in to comment.