Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#247] 지도에서 종료된 게스트 모집글을 불러오는 현상 해결 #248

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/java/kr/pickple/back/game/service/GameService.java
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ public List<GameResponse> findGamesWithInDistance(
final List<Game> games = gameRepository.findGamesWithInDistance(latitude, longitude, distance);

return games.stream()
.filter(Game::isNotEndedGame)
.map(game -> GameResponse.of(game, getMemberResponses(game, CONFIRMED)))
.toList();
}
Expand All @@ -323,6 +324,7 @@ public List<GameResponse> findGamesWithInAddress(final MainAddressResponse mainA
);

return games.stream()
.filter(Game::isNotEndedGame)
.map(game -> GameResponse.of(game, getMemberResponses(game, CONFIRMED)))
.toList();
}
Expand Down