fix(ranking): 프로필 이미지 CDN URL을 반환한다
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user