test #316
|
@ -54,15 +54,6 @@ class UserActionService(
|
||||||
)
|
)
|
||||||
if (grantedCount >= policy.availableCount) return@launch
|
if (grantedCount >= policy.availableCount) return@launch
|
||||||
|
|
||||||
memberPointRepository.save(
|
|
||||||
MemberPoint(
|
|
||||||
memberId = memberId,
|
|
||||||
point = policy.pointAmount,
|
|
||||||
actionType = actionType,
|
|
||||||
expiresAt = now.plusDays(3)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
grantLogRepository.save(
|
grantLogRepository.save(
|
||||||
PointGrantLog(
|
PointGrantLog(
|
||||||
memberId = memberId,
|
memberId = memberId,
|
||||||
|
@ -73,6 +64,15 @@ class UserActionService(
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
memberPointRepository.save(
|
||||||
|
MemberPoint(
|
||||||
|
memberId = memberId,
|
||||||
|
point = policy.pointAmount,
|
||||||
|
actionType = actionType,
|
||||||
|
expiresAt = now.plusDays(3)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if (pushToken != null) {
|
if (pushToken != null) {
|
||||||
fcmService.sendPointGranted(pushToken, policy.pointAmount)
|
fcmService.sendPointGranted(pushToken, policy.pointAmount)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue