Skip to content

Commit

Permalink
re
Browse files Browse the repository at this point in the history
  • Loading branch information
meltapplee committed Oct 17, 2024
1 parent 82f38d4 commit ecaa846
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import org.meogo.domain.question.domain.Question
import org.meogo.domain.question.domain.QuestionRepository
import org.meogo.domain.user.exception.UserNotFoundException
import org.meogo.domain.user.facade.UserFacade
import org.meogo.global.utill.FcmUtil
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import java.time.LocalDateTime
Expand All @@ -20,8 +19,7 @@ class CreateCommentService(
private val commentRepository: CommentRepository,
private val postRepository: PostRepository,
private val userFacade: UserFacade,
private val questionRepository: QuestionRepository,
private val fcmUtil: FcmUtil
private val questionRepository: QuestionRepository
) {

@Transactional
Expand All @@ -45,8 +43,5 @@ class CreateCommentService(
)

commentRepository.save(comment)

val list: List<String> = emptyList()
fcmUtil.sendMessage(list.plus(comment.post!!.user.deviceToken!!), rightEntity.toString(), "새로운 댓글이 달렸습니다")
}
}

0 comments on commit ecaa846

Please sign in to comment.