fix: 유저 행동 기록, 포인트 지급
- 포인트 지급 완료시 푸시 보내지 않도록 수정
This commit is contained in:
@@ -3,7 +3,6 @@ package kr.co.vividnext.sodalive.content.comment
|
||||
import kr.co.vividnext.sodalive.common.ApiResponse
|
||||
import kr.co.vividnext.sodalive.common.SodaException
|
||||
import kr.co.vividnext.sodalive.member.Member
|
||||
import kr.co.vividnext.sodalive.member.MemberService
|
||||
import kr.co.vividnext.sodalive.useraction.ActionType
|
||||
import kr.co.vividnext.sodalive.useraction.UserActionService
|
||||
import org.springframework.data.domain.Pageable
|
||||
@@ -19,7 +18,6 @@ import org.springframework.web.bind.annotation.RestController
|
||||
@RestController
|
||||
class AudioContentCommentController(
|
||||
private val service: AudioContentCommentService,
|
||||
private val memberService: MemberService,
|
||||
private val userActionService: UserActionService
|
||||
) {
|
||||
@PostMapping("/audio-content/comment")
|
||||
@@ -38,15 +36,11 @@ class AudioContentCommentController(
|
||||
)
|
||||
|
||||
try {
|
||||
val memberId = member.id!!
|
||||
val pushTokenList = memberService.getPushTokenList(recipient = memberId)
|
||||
|
||||
userActionService.recordAction(
|
||||
memberId = member.id!!,
|
||||
isAuth = member.auth != null,
|
||||
actionType = ActionType.CONTENT_COMMENT,
|
||||
contentCommentId = commentId,
|
||||
pushTokenList = pushTokenList
|
||||
contentCommentId = commentId
|
||||
)
|
||||
|
||||
userActionService.recordAction(
|
||||
@@ -54,8 +48,7 @@ class AudioContentCommentController(
|
||||
isAuth = member.auth != null,
|
||||
actionType = ActionType.ORDER_CONTENT_COMMENT,
|
||||
contentId = request.contentId,
|
||||
contentCommentId = commentId,
|
||||
pushTokenList = pushTokenList
|
||||
contentCommentId = commentId
|
||||
)
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
|
Reference in New Issue
Block a user