Skip to content

Commit

Permalink
refactor: (#286) 정렬까지 슬쩍
Browse files Browse the repository at this point in the history
  • Loading branch information
softpeanut committed Jan 10, 2023
1 parent 6b592cc commit 8ed87d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ class ShowSpotListUseCase(

return SpotResponse(result)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ class QueryTeamsUseCase(
) {

fun execute(spotId: UUID): QueryTeamsResponse {
val teams = queryTeamPort.queryTeamsBySpotId(spotId)
val teams = queryTeamPort.queryTeamsBySpotId(spotId).map {
QueryTeamsResponse.TeamElement(
id = it.id,
name = it.name
)
}

return QueryTeamsResponse(
teams.map {
QueryTeamsResponse.TeamElement(
id = it.id,
name = it.name
)
}
)
return QueryTeamsResponse(teams)
}
}
Empty file.

0 comments on commit 8ed87d1

Please sign in to comment.