From 09891ad598f624a827713cfe6485ce1780c3a420 Mon Sep 17 00:00:00 2001 From: brinst07 Date: Thu, 6 Mar 2025 22:04:13 +0900 Subject: [PATCH] =?UTF-8?q?mapper=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../applicationclient/store/service/StoreService.kt | 4 ---- 1 file changed, 4 deletions(-) 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(), ) }