diff --git a/src/main/kotlin/org/meogo/domain/comment/service/CreateCommentService.kt b/src/main/kotlin/org/meogo/domain/comment/service/CreateCommentService.kt index ffc4df7..9337abb 100644 --- a/src/main/kotlin/org/meogo/domain/comment/service/CreateCommentService.kt +++ b/src/main/kotlin/org/meogo/domain/comment/service/CreateCommentService.kt @@ -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 @@ -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 @@ -45,8 +43,5 @@ class CreateCommentService( ) commentRepository.save(comment) - - val list: List = emptyList() - fcmUtil.sendMessage(list.plus(comment.post!!.user.deviceToken!!), rightEntity.toString(), "새로운 댓글이 달렸습니다") } }