Skip to content

Commit

Permalink
refactor(User) : 유저 커넥션 활성상태 컴포넌트화
Browse files Browse the repository at this point in the history
  • Loading branch information
waterfogSW committed Jan 5, 2025
1 parent 411d121 commit 7cb9e3f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import com.threedays.domain.user.vo.Gender
import com.threedays.domain.user.vo.JobOccupation
import com.threedays.oas.api.UsersApi
import com.threedays.oas.model.CompleteProfileImageUploadRequest
import com.threedays.oas.model.ConnectionStatus
import com.threedays.oas.model.GetMyUserInfoResponse
import com.threedays.oas.model.GetProfileImageUploadUrlResponse
import com.threedays.oas.model.ProfileImageExtension
Expand Down Expand Up @@ -107,6 +108,7 @@ class UserController(
profile = OASModelAdapter.toUserProfileDisplayInfo(user.profile),
desiredPartner = OASModelAdapter.toOASModel(user.desiredPartner),
profileWidgets = user.profile.profileWidgets.map(OASModelAdapter::toOASModel),
status = ConnectionStatus.valueOf(user.connectionStatus.name)
).let { ResponseEntity.ok(it) }
}

Expand Down Expand Up @@ -236,7 +238,7 @@ class UserController(
val result: User = updateConnectionStatus(command)

UpdateConnectionStatusResponse(
status = UpdateConnectionStatusResponse.Status.valueOf(result.connectionStatus.name)
status = ConnectionStatus.valueOf(result.connectionStatus.name)
).let { ResponseEntity.ok(it) }
}
}

0 comments on commit 7cb9e3f

Please sign in to comment.