콘텐츠 댓글 알림 추가
This commit is contained in:
		| @@ -4,6 +4,8 @@ import kr.co.vividnext.sodalive.content.comment.AudioContentCommentRepository | ||||
| import kr.co.vividnext.sodalive.member.MemberRepository | ||||
| import org.springframework.scheduling.annotation.Async | ||||
| import org.springframework.stereotype.Component | ||||
| import org.springframework.transaction.annotation.Propagation | ||||
| import org.springframework.transaction.annotation.Transactional | ||||
| import org.springframework.transaction.event.TransactionalEventListener | ||||
|  | ||||
| enum class FcmEventType { | ||||
| @@ -32,6 +34,7 @@ class FcmSendListener( | ||||
| ) { | ||||
|     @Async | ||||
|     @TransactionalEventListener | ||||
|     @Transactional(propagation = Propagation.REQUIRES_NEW) | ||||
|     fun send(fcmEvent: FcmEvent) { | ||||
|         when (fcmEvent.type) { | ||||
|             FcmEventType.ALL -> { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user