From 9263ab552d3a4040e496fa97563592de017782ee Mon Sep 17 00:00:00 2001 From: DongGeon0908 Date: Thu, 3 Oct 2024 00:35:30 +0900 Subject: [PATCH 1/2] v1.1.23-SNAPSHOT --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 9eb97305..fea8b85a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version=1.1.22-SNAPSHOT +version=1.1.23-SNAPSHOT kotlin.code.style=official From d463977276c24be3196233ab35a0336d0e78625f Mon Sep 17 00:00:00 2001 From: wjdtkdgns Date: Mon, 18 Nov 2024 22:51:20 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20user=20statistic=20=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/statistic/application/StatisticFacade.kt | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/api/src/main/kotlin/com/oksusu/susu/api/statistic/application/StatisticFacade.kt b/api/src/main/kotlin/com/oksusu/susu/api/statistic/application/StatisticFacade.kt index a5a54e71..a248ad04 100644 --- a/api/src/main/kotlin/com/oksusu/susu/api/statistic/application/StatisticFacade.kt +++ b/api/src/main/kotlin/com/oksusu/susu/api/statistic/application/StatisticFacade.kt @@ -25,16 +25,11 @@ class StatisticFacade( private val logger = KotlinLogging.logger { } suspend fun getUserEnvelopeStatistic(user: AuthUser): UserEnvelopeStatisticResponse { - /** 통계 캐싱 여부 확인 */ - userEnvelopeStatisticService.getStatisticOrNull(user.uid)?.run { - logger.debug { "${user.uid} user statistic cache hit" } - - return UserEnvelopeStatisticResponse.from(this) + return userEnvelopeStatisticService.getStatisticOrNull(user.uid)?.let { + UserEnvelopeStatisticResponse.from(it) + } ?: createUserEnvelopeStatistic(user.uid).let { + UserEnvelopeStatisticResponse.from(it) } - - val userEnvelopeStatistic = createUserEnvelopeStatistic(user.uid) - - return UserEnvelopeStatisticResponse.from(userEnvelopeStatistic) } suspend fun refreshUserEnvelopeStatistic(user: AuthUser): UserEnvelopeStatisticResponse {