fix: actionCount 를 조회할 때 endDate가 마지막 action 저장 이전의 시간이 측정될 수도 있어서 LocalDateTime.now()로 수정

This commit is contained in:
Klaus 2025-05-22 13:19:52 +09:00
parent dc13053825
commit e67b798714
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class UserActionService(
} else { } else {
policy.startDate policy.startDate
}, },
endDate = policy.endDate ?: now endDate = policy.endDate ?: LocalDateTime.now()
) )
if (actionCount < policy.threshold) return@execute if (actionCount < policy.threshold) return@execute