From eb8c8c14e812d3e66c791b63790f1c9b70f33f62 Mon Sep 17 00:00:00 2001 From: Klaus Date: Fri, 16 May 2025 17:57:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9C=A0=EC=A0=80=20=ED=96=89=EB=8F=99?= =?UTF-8?q?=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20=EA=B8=B0=EB=A1=9D=EC=8B=9C=20?= =?UTF-8?q?=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EC=A7=80=EA=B8=89=EA=B3=BC=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EA=B8=B0=EB=A1=9D=20=EC=88=9C=EC=84=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20-=20=EA=B8=B0=EC=A1=B4:=20=ED=8F=AC?= =?UTF-8?q?=EC=9D=B8=ED=8A=B8=20=EC=A7=80=EA=B8=89=20=ED=9B=84=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EA=B8=B0=EB=A1=9D=20-=20=EB=B3=80=EA=B2=BD:=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EA=B8=B0=EB=A1=9D=20=ED=9B=84=20=ED=8F=AC?= =?UTF-8?q?=EC=9D=B8=ED=8A=B8=20=EC=A7=80=EA=B8=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sodalive/useraction/UserActionService.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/useraction/UserActionService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/useraction/UserActionService.kt index 3f1a33d..6881d59 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/useraction/UserActionService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/useraction/UserActionService.kt @@ -54,15 +54,6 @@ class UserActionService( ) if (grantedCount >= policy.availableCount) return@launch - memberPointRepository.save( - MemberPoint( - memberId = memberId, - point = policy.pointAmount, - actionType = actionType, - expiresAt = now.plusDays(3) - ) - ) - grantLogRepository.save( PointGrantLog( 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) { fcmService.sendPointGranted(pushToken, policy.pointAmount) }