diff --git a/application-client/src/main/kotlin/org/fastcampus/applicationclient/store/service/StoreService.kt b/application-client/src/main/kotlin/org/fastcampus/applicationclient/store/service/StoreService.kt index f457d4e..de57cb4 100644 --- a/application-client/src/main/kotlin/org/fastcampus/applicationclient/store/service/StoreService.kt +++ b/application-client/src/main/kotlin/org/fastcampus/applicationclient/store/service/StoreService.kt @@ -44,12 +44,8 @@ class StoreService( @StoreMetered fun getStoreInfo(storeId: String, userLat: Double, userLng: Double): StoreInfo { val findStoreNearByAndCondition = storeRepository.findStoreNearByAndCondition(storeId, userLat, userLng) - val countReviewCountByStoreId = reviewRepository.countReviewCountByStoreId(storeId) - val totalAverageScoreByStoreId = reviewRepository.getTotalAverageScoreByStoreId(storeId) return findStoreNearByAndCondition.store.toStoreInfo( findStoreNearByAndCondition.distance.toDoubleOrNull() ?: 0.0, - rating = totalAverageScoreByStoreId, - reviewCount = countReviewCountByStoreId.toInt(), ) }