Skip to content

Commit

Permalink
Fix Broken Goal Retrieve HostUserId
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Diger committed Dec 31, 2023
1 parent 6e72ec6 commit f603f44
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class GoalApplicationService(
val bettingList = bettingService.loadAllByGoalId(goalId)

val hostDto = GoalBettingHost(
id = userId,
id = hostUser.id!!,
nickname = hostUser.nickname.value,
goalCreatedAt = goal.createdAt
)
Expand All @@ -134,12 +134,12 @@ class GoalApplicationService(
goalId: Long
): GoalRetrieveParticipantResponse {
val goal = goalService.loadById(goalId)
val hostUser = userService.loadById(goal.userId)
val goalHostUser = userService.loadById(goal.userId)
val bettingList = bettingService.loadAllByGoalId(goalId)

val hostDto = GoalBettingHost(
id = hostUser.id!!,
nickname = hostUser.nickname.value,
id = goalHostUser.id!!,
nickname = goalHostUser.nickname.value,
goalCreatedAt = goal.createdAt
)

Expand Down

0 comments on commit f603f44

Please sign in to comment.