feat(home): 응원 크리에이터 집계 기준을 변경한다

This commit is contained in:
2026-07-12 12:14:01 +09:00
parent 09558e2669
commit 6da2378b29
4 changed files with 21 additions and 23 deletions

View File

@@ -601,7 +601,7 @@ class DefaultHomeRecommendationQueryRepository(
join use_can uc on uc.id = ucc.use_can_id
where ucc.status = 'RECEIVED'
and uc.is_refund = false
and uc.can_usage = 'CHANNEL_DONATION'
and uc.can_usage in ('CHANNEL_DONATION', 'DONATION')
and ucc.created_at >= :windowStart
and ucc.created_at < :windowEndExclusive
group by ucc.recipient_creator_id

View File

@@ -91,7 +91,7 @@ open class RecommendationSnapshotRefreshService(
@Transactional
open fun refreshCheerCreatorSnapshots(nowUtc: LocalDateTime = LocalDateTime.now(ZoneOffset.UTC)): Int {
val startedAt = System.currentTimeMillis()
val window = windowPolicy.previousKstDayUtcWindow(nowUtc)
val window = windowPolicy.previousKstSevenDayUtcWindow(nowUtc)
val snapshots = queryPort.findCheerCreatorSnapshots(
window.startUtc,
window.endExclusiveUtc,