Skip to content

Commit

Permalink
fix: user 유저 프로필 수정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Woonseok105 committed Oct 30, 2023
1 parent a98fef4 commit 48e1618
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main/kotlin/kr/hs/dsm/inq/domain/user/persistence/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ data class User(
var coin: Int = 0
) {

fun updateInfo(request: UpdateUserInfoRequest) {
this.username = request.username
this.job = request.job
this.jobDuration = request.jobDuration
fun updateInfo(username: String, job: String, jobDuration: Int) {
this.username = username
this.job = job
this.jobDuration = jobDuration
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ class UserService(
fun updateUserInfo(request: UpdateUserInfoRequest) {
val user = SecurityUtil.getCurrentUser()

user.updateInfo(request)
user.updateInfo(request.username, request.job, request.jobDuration)

userRepository.save(user)
}

fun queryUserAttendance(): UserAttendanceResponse {
Expand Down

0 comments on commit 48e1618

Please sign in to comment.