Skip to content

Commit

Permalink
release v1.1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Nov 18, 2024
2 parents c057ab3 + d463977 commit ebe9d70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=1.1.22
version=1.1.23
kotlin.code.style=official

0 comments on commit ebe9d70

Please sign in to comment.