fix(ranking): 프로필 이미지 CDN URL을 반환한다

This commit is contained in:
2026-06-09 14:29:14 +09:00
parent eccda289a2
commit 8a72f920f1
3 changed files with 9 additions and 5 deletions

View File

@@ -143,10 +143,14 @@ class CreatorRankingQueryService(
isNew = false,
creatorId = creatorId,
nickname = nickname,
profileImageUrl = profileImageUrl
profileImageUrl = profileImageUrl.toCdnUrl()
)
}
private fun String?.toCdnUrl(): String? {
return if (isNullOrBlank()) null else "$cloudFrontHost/$this"
}
private fun CreatorRankingSnapshotCandidate.toSnapshotRecord(utcRange: CreatorRankingUtcRange): CreatorRankingSnapshotRecord {
val calculatedContentLiveScore = scorePolicy.calculateContentLiveScore(
liveCanAmount = liveCanAmount,