From 7dc76e74480de85188e3112a589ea5ea870ded7f Mon Sep 17 00:00:00 2001 From: Denny-Ko Date: Thu, 1 Feb 2024 06:38:21 +0900 Subject: [PATCH] [Fix] remove google place api --- .../java/fc/be/app/domain/place/service/PlaceService.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/java/fc/be/app/domain/place/service/PlaceService.java b/app/src/main/java/fc/be/app/domain/place/service/PlaceService.java index 02e2fad5..fa4dcd29 100644 --- a/app/src/main/java/fc/be/app/domain/place/service/PlaceService.java +++ b/app/src/main/java/fc/be/app/domain/place/service/PlaceService.java @@ -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; @@ -93,11 +92,7 @@ public PlaceNearbyResponse bringNearbyPlaces(PlaceNearbyRequest placeNearbyReque throw new PlaceException(PLACE_NOT_LOADED); } - List 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) {