feat(home): 응원 크리에이터 집계 기준을 변경한다
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user