Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
[Fix] remove google place api
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-KoKo committed Jan 31, 2024
1 parent 13f30ee commit 7dc76e7
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import fc.be.app.domain.place.exception.PlaceException;
import fc.be.app.domain.place.repository.PlaceRepository;
import fc.be.openapi.algolia.SearchEngineService;
import fc.be.openapi.google.dto.review.APIRatingResponse;
import fc.be.openapi.google.service.ReviewAPIService;
import fc.be.openapi.tourapi.TourAPIService;
import fc.be.openapi.tourapi.dto.response.bone.PlaceDTO;
Expand Down Expand Up @@ -93,11 +92,7 @@ public PlaceNearbyResponse bringNearbyPlaces(PlaceNearbyRequest placeNearbyReque
throw new PlaceException(PLACE_NOT_LOADED);
}

List<APIRatingResponse> apiRatingResponses = places.stream()
.map(place -> reviewAPIService.bringRatingCount(place.getTitle(), place.getContentTypeId()))
.toList();

return PlaceNearbyResponse.from(places).with(apiRatingResponses);
return PlaceNearbyResponse.from(places);
}

public PlacePopularGetResponse bringPopularPlaces(PlacePopularGetRequest placePopularGetRequest) {
Expand Down

0 comments on commit 7dc76e7

Please sign in to comment.