test #316

Merged
klaus merged 20 commits from test into main 2025-05-20 06:03:11 +00:00
1 changed files with 13 additions and 2 deletions
Showing only changes of commit 3079998a5d - Show all commits

View File

@ -89,14 +89,25 @@ class UserActionService(
memberPointRepository.save(
MemberPoint(
memberId = memberId,
point = policy.pointAmount,
point = if (actionType == ActionType.ORDER_CONTENT_COMMENT && order != null) {
order.can
} else {
policy.pointAmount
},
actionType = actionType,
expiresAt = now.plusDays(3)
)
)
if (pushTokenList.isNotEmpty()) {
fcmService.sendPointGranted(pushTokenList, policy.pointAmount)
fcmService.sendPointGranted(
pushTokenList,
if (actionType == ActionType.ORDER_CONTENT_COMMENT && order != null) {
order.can
} else {
policy.pointAmount
}
)
}
}
}