diff --git a/simtong-application/src/main/kotlin/team/comit/simtong/domain/spot/usecase/ShowSpotListUseCase.kt b/simtong-application/src/main/kotlin/team/comit/simtong/domain/spot/usecase/ShowSpotListUseCase.kt index 4646c6ea..394425d4 100644 --- a/simtong-application/src/main/kotlin/team/comit/simtong/domain/spot/usecase/ShowSpotListUseCase.kt +++ b/simtong-application/src/main/kotlin/team/comit/simtong/domain/spot/usecase/ShowSpotListUseCase.kt @@ -28,5 +28,4 @@ class ShowSpotListUseCase( return SpotResponse(result) } - } \ No newline at end of file diff --git a/simtong-application/src/main/kotlin/team/comit/simtong/domain/team/usecase/QueryTeamsUseCase.kt b/simtong-application/src/main/kotlin/team/comit/simtong/domain/team/usecase/QueryTeamsUseCase.kt index 9f81eb39..54b65f89 100644 --- a/simtong-application/src/main/kotlin/team/comit/simtong/domain/team/usecase/QueryTeamsUseCase.kt +++ b/simtong-application/src/main/kotlin/team/comit/simtong/domain/team/usecase/QueryTeamsUseCase.kt @@ -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) } } \ No newline at end of file diff --git a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/user/spi/.gitkeep b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/user/spi/.gitkeep deleted file mode 100644 index e69de29b..00000000