fix: 콘텐츠 댓글 작성시 유저 행동 데이터에 댓글 ID를 같이 기록하도록 수정
This commit is contained in:
@@ -33,12 +33,19 @@ class UserActionService(
|
||||
memberId: Long,
|
||||
actionType: ActionType,
|
||||
contentId: Long? = null,
|
||||
commentId: Long? = null,
|
||||
pushTokenList: List<String> = emptyList()
|
||||
) {
|
||||
coroutineScope.launch {
|
||||
val now = LocalDateTime.now()
|
||||
transactionTemplate.execute {
|
||||
repository.save(UserActionLog(memberId, actionType))
|
||||
repository.save(
|
||||
UserActionLog(
|
||||
memberId = memberId,
|
||||
actionType = actionType,
|
||||
commentId = commentId
|
||||
)
|
||||
)
|
||||
repository.flush()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user