fix: actionCount 를 조회할 때 endDate가 마지막 action 저장 이전의 시간이 측정될 수도 있어서 LocalDateTime.now()로 수정
This commit is contained in:
parent
dc13053825
commit
e67b798714
|
@ -130,7 +130,7 @@ class UserActionService(
|
|||
} else {
|
||||
policy.startDate
|
||||
},
|
||||
endDate = policy.endDate ?: now
|
||||
endDate = policy.endDate ?: LocalDateTime.now()
|
||||
)
|
||||
if (actionCount < policy.threshold) return@execute
|
||||
|
||||
|
|
Loading…
Reference in New Issue